diff --git a/module/doc/css/objectlibs.css b/module/doc/css/objectlibs.css index 71a6036c15..01c2431ed2 100644 --- a/module/doc/css/objectlibs.css +++ b/module/doc/css/objectlibs.css @@ -48,3 +48,4 @@ .tree-group:hover > .module-name {width: calc(100% - 20px);} .tree-group:hover .tree-actions {display: block} .tree li.has-list.open:before {left: 6px;} +.sortable-sorting .tree-group:hover .tree-actions {display: none;} diff --git a/module/doc/css/tablecontents.css b/module/doc/css/tablecontents.css index 9cd6f9101e..8e12dc7d0f 100644 --- a/module/doc/css/tablecontents.css +++ b/module/doc/css/tablecontents.css @@ -23,18 +23,16 @@ span.dotted-line+a {display: block;} .sortable-sorting .module-name > a {cursor: move;} .sortable-sorting li >.tree-group {opacity: .5;} +.sortable-sorting li:before {opacity: .3;} .sortable-sorting .drop-here .tree-group {background-color: #fff3e0;} .sortable-sorting .drop-here .tree-group > * {opacity: .1;} .sortable-sorting .drag-shadow .tree-group {opacity: 1!important;} .sortable-sorting .drag-shadow .tree-actions {visibility: hidden;} +.is-sorting > li:before {opacity: 1;} .is-sorting > li > .tree-group {opacity: 1; border-radius: 4px;} .is-sorting > li ul {display: none!important;} +li.drag-shadow ul {display: none!important;} .tree-group {position: relative;} .tree-group > .module-name {white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; display: block;} -.tree-group .tree-actions {display: none; position: absolute; right: 0; top: 0; background-color: #fff; white-space: nowrap;} -.tree-group:hover > .module-name {width: calc(100% - 20px);} -.tree-group:hover .tree-actions {display: block} .tree li.has-list.open:before {left: 6px;} -.sortDoc>.tail-info{right: 20px;} -.sortDoc>.tree-actions{position: absolute; right: 0px; background: #fff;} diff --git a/module/doc/model.php b/module/doc/model.php index 87f9a94b0c..73acea6885 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -2417,12 +2417,6 @@ EOT; if($currentMethod == 'tablecontents') { $treeMenu[0] .= '
' . zget($users, $doc->editedBy) . '  ' . $doc->editedDate . ''; - if(common::hasPriv('doc', 'updateOrder')) - { - $treeMenu[0] .= "
"; - $treeMenu[0] .= html::a('javascript:;', "", '', "title='{$this->lang->doc->updateOrder}' class='sortDoc'"); - $treeMenu[0] .= '
'; - } } if($currentMethod == 'objectlibs') { @@ -2495,12 +2489,6 @@ EOT; if($currentMethod == 'tablecontents') { $treeMenu[$module->id] .= '
' . zget($users, $doc->editedBy) . '  ' . $doc->editedDate . ''; - if(common::hasPriv('doc', 'updateOrder')) - { - $treeMenu[$module->id] .= "
"; - $treeMenu[$module->id] .= html::a('javascript:;', "", '', "title='{$this->lang->doc->updateOrder}' class='sortDoc'"); - $treeMenu[$module->id] .= '
'; - } } if($currentMethod == 'objectlibs') @@ -2535,13 +2523,7 @@ EOT; else { $li = "
" . $module->name . ''; - if($currentMethod == 'tablecontents' and common::hasPriv('tree', 'updateOrder')) - { - $li .= "
"; - $li .= html::a('javascript:;', "", '', "title='{$this->lang->doc->updateOrder}' class='sortModule'"); - $li .= '
'; - } - else + if($currentMethod != 'tablecontents') { if(common::hasPriv('tree', 'edit') or common::hasPriv('tree', 'browse') or common::hasPriv('tree', 'browse') or common::hasPriv('tree', 'updateOrder')) { diff --git a/module/doc/view/side.html.php b/module/doc/view/side.html.php index 701393f393..17ac0cbdf7 100644 --- a/module/doc/view/side.html.php +++ b/module/doc/view/side.html.php @@ -72,6 +72,7 @@ $sideWidth = common::checkNotCN() ? '270' : '238'; .sortable-sorting .drag-shadow .tree-actions {visibility: hidden;} .is-sorting > li > .tree-group {opacity: 1; border-radius: 4px;} .is-sorting > li ul {display: none!important;} + li.drag-shadow ul {display: none!important;}