using internal vars instead of search in DOM, which might not yet be ready, necessary to set actions via modifications

This commit is contained in:
Ralf Becker 2014-02-27 17:45:25 +00:00
parent 2e287689ef
commit 30de2b30c2

View File

@ -270,9 +270,9 @@ var et2_toolbar = et2_DOMWidget.extend(
this.actionlist.appendTo(this.div);
this.actionbox.appendTo(this.div);
var toolbar =jQuery('#'+this.id+'-'+'actionlist').find('span').children(),
toolbox = jQuery('#'+this.id+'-'+'actionbox'),
menulist = jQuery('#'+this.id+'-'+'menulist');
var toolbar = this.actionlist.find('span').children(),
toolbox = this.actionbox,
menulist = jQuery(this.actionlist.children()[1]);
toolbar.draggable({
cancel:true,