From c53943aa76847551229e62ec50961dfdad996478 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 3 Sep 2013 21:25:50 +0000 Subject: [PATCH] Another try to avoid jQueryUI error about not created menu --- etemplate/js/et2_widget_dropdown_button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_dropdown_button.js b/etemplate/js/et2_widget_dropdown_button.js index f3d048b0a4..8df0a63bcb 100644 --- a/etemplate/js/et2_widget_dropdown_button.js +++ b/etemplate/js/et2_widget_dropdown_button.js @@ -193,7 +193,7 @@ var et2_dropdown_button = et2_inputWidget.extend( destroy: function() { // Destroy widget - if(this.menu && this.menu.menu("widget")) this.menu.menu("destroy"); + if(this.menu && this.menu.data('ui-menu')) this.menu.menu("destroy"); // Null children this.image = null;