diff --git a/module/tree/control.php b/module/tree/control.php index 67ba9e007f..8f9005ffd7 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -419,12 +419,7 @@ class tree extends control if(!empty($_POST)) { $this->tree->updateOrder($_POST['orders']); - if($viewType == 'story' and !empty($rootID) and !empty($moduleID)) - { - $sql = "objectType = 'module' and objectID = $moduleID and date='" . helper::now() . "' and action = 'moved'" ; - $actions = $this->loadModel('action')->getBySQL($sql, 'id_desc'); - if(count($actions) == 0) $this->action->create('module', $rootID, 'moved', '', $moduleID); - } + if($viewType == 'story' and !empty($rootID) and !empty($moduleID)) $this->action->create('module', $rootID, 'moved', '', $moduleID); die(js::reload('parent')); } } diff --git a/module/tree/view/browse.html.php b/module/tree/view/browse.html.php index 1e212f0020..b6582f2936 100644 --- a/module/tree/view/browse.html.php +++ b/module/tree/view/browse.html.php @@ -283,7 +283,7 @@ $(function() { hiddenwin.location.href = action.linkTemplate.format(item.id); } - else if(action.type === 'sort') + else if(action.type === 'sort' && event.item == null) { var orders = {}; $('#modulesTree').find('li:not(.tree-action-item)').each(function()