mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 02:41:02 +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,
|
toolbox = this.actionbox,
|
||||||
menulist = jQuery(this.actionbox.children()[1]);
|
menulist = jQuery(this.actionbox.children()[1]);
|
||||||
|
|
||||||
|
/* disabling DND in toolbar for now
|
||||||
toolbar.draggable({
|
toolbar.draggable({
|
||||||
cancel:'',
|
cancel:'',
|
||||||
zIndex: 1000,
|
zIndex: 1000,
|
||||||
@ -495,6 +496,15 @@ export class et2_toolbar extends et2_DOMWidget implements et2_IInput
|
|||||||
tolerance:"touch"
|
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)=>{
|
toolbox.on('toggle', (e)=>{
|
||||||
const details = <HTMLDetailsElement>e.target;
|
const details = <HTMLDetailsElement>e.target;
|
||||||
if (details.open)
|
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);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -848,4 +849,3 @@ export class et2_toolbar extends et2_DOMWidget implements et2_IInput
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
et2_register_widget(et2_toolbar, ["toolbar"]);
|
et2_register_widget(et2_toolbar, ["toolbar"]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user