Fix wrong jQuery assignment to menulist Node in toolbar widget, and replace another jQuery with internal vars

This commit is contained in:
Hadi Nategh 2014-02-27 18:15:08 +00:00
parent 5fab71efab
commit c0c20ed9d2

View File

@ -272,7 +272,7 @@ var et2_toolbar = et2_DOMWidget.extend(
var toolbar = this.actionlist.find('span').children(),
toolbox = this.actionbox,
menulist = jQuery(this.actionlist.children()[1]);
menulist = jQuery(this.actionbox.children()[1]);
toolbar.draggable({
cancel:true,
@ -308,11 +308,11 @@ var et2_toolbar = et2_DOMWidget.extend(
tolerance:"touch"
});
jQuery('#'+this.id+'-'+'actionlist').droppable({
this.actionlist.droppable({
tolerance:"pointer",
drop:function (event,ui) {
that.set_prefered(ui.draggable.attr('id').replace(that.id+'-',''),"remove");
ui.draggable.appendTo(jQuery('#'+that.id+'-'+'actionlist'));
ui.draggable.appendTo(that.actionlist);
that._build_menu(actions);
}
});