From 463d7ead2f257bd24090df064ba91c7fe643103a Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 13 Apr 2015 10:05:12 +0000 Subject: [PATCH] Revert commit #52449, causing context menu's sub action get lost after et2_refresh --- etemplate/js/et2_extension_nextmatch.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index d46afed4d7..6ff52c5bea 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -1688,10 +1688,6 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput, et2_IPrin set_actions: function(actions) { if(actions != this.options.actions && this.controller != null && this.controller._actionManager) { - for(var i = this.controller._actionManager.children.length - 1; i >= 0; i--) - { - this.controller._actionManager.children[i].remove(); - } this.options.actions = actions; this.options.settings.action_links = this.controller._actionLinks = this._get_action_links(actions);