diff --git a/module/project/js/kanban.js b/module/project/js/kanban.js index a23204f053..cbe413726a 100644 --- a/module/project/js/kanban.js +++ b/module/project/js/kanban.js @@ -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(); - }}); }); diff --git a/module/task/control.php b/module/task/control.php index e96e10334a..137e277a90 100644 --- a/module/task/control.php +++ b/module/task/control.php @@ -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)); }