* Finish task #5346.
This commit is contained in:
@@ -196,18 +196,4 @@ $(function()
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
$.extend({'closeModal':function(callback, location)
|
||||
{
|
||||
var ref = $('#triggerModal.modal').attr('ref');
|
||||
if(ref.indexOf('export') > 0 && ref.indexOf('kanban') > 0)
|
||||
{
|
||||
$('#triggerModal').modal('hide');
|
||||
}
|
||||
else
|
||||
{
|
||||
kanbanModalTrigger.close();
|
||||
}
|
||||
if(callback && $.isFunction(callback)) callback();
|
||||
}});
|
||||
});
|
||||
|
||||
@@ -239,7 +239,7 @@ class task extends control
|
||||
if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError()));
|
||||
|
||||
/* Locate the browser. */
|
||||
if(!empty($iframe)) $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true));
|
||||
if(!empty($iframe)) $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'parent'));
|
||||
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $storyLink));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user