diff options
author | Mārtiņš Tālbergs <martins.talbergs@zabbix.com> | 2021-03-04 11:06:26 +0300 |
---|---|---|
committer | Mārtiņš Tālbergs <martins.talbergs@zabbix.com> | 2021-03-04 11:06:26 +0300 |
commit | 92ecf6b7b7bbf854816018e3f20c4da97530aa6a (patch) | |
tree | 7c9e6360eb3cbfcb50680ed1dd68d819381eae25 | |
parent | e4d9a69f784a2c2a071c9f1a11a550471ba64a11 (diff) |
..F....... [ZBXNEXT-6288] removed unused "droppable" references
-rw-r--r-- | ui/js/class.cnavtree.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/ui/js/class.cnavtree.js b/ui/js/class.cnavtree.js index 627be12455c..c6834ae21ed 100644 --- a/ui/js/class.cnavtree.js +++ b/ui/js/class.cnavtree.js @@ -115,10 +115,6 @@ if (typeof (zbx_widget_navtree_trigger) !== typeof (Function)) { } } - - if (scrolled !== false && $.ui.ddmanager && !o.dropBehaviour) { - $.ui.ddmanager.prepareOffsets(this, event); - } } // Regenerate the absolute position used for position checks. @@ -324,11 +320,6 @@ if (typeof (zbx_widget_navtree_trigger) !== typeof (Function)) { // Post events to containers. this._contactContainers(event); - // Interconnect with droppables. - if ($.ui.ddmanager) { - $.ui.ddmanager.drag(this, event); - } - // Call callbacks. this._trigger('sort', event, this._uiHash()); @@ -364,16 +355,6 @@ if (typeof (zbx_widget_navtree_trigger) !== typeof (Function)) { this._clear(event, noPropagation); } else { - // If we are using droppables, inform the manager about the drop. - if ($.ui.ddmanager && !this.options.dropBehaviour) { - $.ui.ddmanager.drop(this, event); - - var parent_id = this.placeholder.parent().closest('.tree-item').data('id'), - item_id = $(this.currentItem[0]).data('id'); - - $('[name="navtree.parent.' + item_id + '"]').val(parent_id); - } - if (this.options.revert) { var self = this, cur = self.placeholder.offset(); |