mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
disabling DND in toolbar for now
This commit is contained in:
parent
af34ab9f8c
commit
ad98fb299b
@ -452,6 +452,7 @@ export class et2_toolbar extends et2_DOMWidget implements et2_IInput
|
||||
toolbox = this.actionbox,
|
||||
menulist = jQuery(this.actionbox.children()[1]);
|
||||
|
||||
/* disabling DND in toolbar for now
|
||||
toolbar.draggable({
|
||||
cancel:'',
|
||||
zIndex: 1000,
|
||||
@ -495,6 +496,15 @@ export class et2_toolbar extends et2_DOMWidget implements et2_IInput
|
||||
tolerance:"touch"
|
||||
});
|
||||
|
||||
this.actionlist.droppable({
|
||||
tolerance:"pointer",
|
||||
drop:function (event,ui) {
|
||||
that.set_prefered(ui.draggable[0].id.replace(that.id + '-', ''), false);
|
||||
ui.draggable.appendTo(that.actionlist);
|
||||
that._build_menu(actions);
|
||||
}
|
||||
});*/
|
||||
|
||||
toolbox.on('toggle', (e)=>{
|
||||
const details = <HTMLDetailsElement>e.target;
|
||||
if (details.open)
|
||||
@ -515,15 +525,6 @@ export class et2_toolbar extends et2_DOMWidget implements et2_IInput
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
this.actionlist.droppable({
|
||||
tolerance:"pointer",
|
||||
drop:function (event,ui) {
|
||||
that.set_prefered(ui.draggable[0].id.replace(that.id + '-', ''), false);
|
||||
ui.draggable.appendTo(that.actionlist);
|
||||
that._build_menu(actions);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@ -847,5 +848,4 @@ export class et2_toolbar extends et2_DOMWidget implements et2_IInput
|
||||
document.body.appendChild(dialog);
|
||||
}
|
||||
}
|
||||
et2_register_widget(et2_toolbar, ["toolbar"]);
|
||||
|
||||
et2_register_widget(et2_toolbar, ["toolbar"]);
|
Loading…
Reference in New Issue
Block a user