This commit is contained in:
liumengyi
2022-07-07 16:58:27 +08:00
parent 9ef8354d1d
commit bb9ce6dd49
2 changed files with 2 additions and 7 deletions
+1 -6
View File
@@ -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'));
}
}
+1 -1
View File
@@ -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()