mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
Fix wrong jQuery assignment to menulist Node in toolbar widget, and replace another jQuery with internal vars
This commit is contained in:
parent
5fab71efab
commit
c0c20ed9d2
@ -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);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user