mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 09:58:16 +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(),
|
var toolbar = this.actionlist.find('span').children(),
|
||||||
toolbox = this.actionbox,
|
toolbox = this.actionbox,
|
||||||
menulist = jQuery(this.actionlist.children()[1]);
|
menulist = jQuery(this.actionbox.children()[1]);
|
||||||
|
|
||||||
toolbar.draggable({
|
toolbar.draggable({
|
||||||
cancel:true,
|
cancel:true,
|
||||||
@ -308,11 +308,11 @@ var et2_toolbar = et2_DOMWidget.extend(
|
|||||||
tolerance:"touch"
|
tolerance:"touch"
|
||||||
});
|
});
|
||||||
|
|
||||||
jQuery('#'+this.id+'-'+'actionlist').droppable({
|
this.actionlist.droppable({
|
||||||
tolerance:"pointer",
|
tolerance:"pointer",
|
||||||
drop:function (event,ui) {
|
drop:function (event,ui) {
|
||||||
that.set_prefered(ui.draggable.attr('id').replace(that.id+'-',''),"remove");
|
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);
|
that._build_menu(actions);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user