load: function() { var value = YAHOO.mostyle.getId(); // Instantiate the Dialog text = YAHOO.mostyle.modal(700,"text"); // Create tab handle var tab = new YAHOO.widget.TabView({id: 'text'}); // Add tabs tab.addTab(new YAHOO.widget.Tab({ label: 'Add', dataSrc: base_url+'panel_text/add_view/'+value, active: true })); tab.appendTo('config-body'); tab.addListener('activeChange', function(){ alert('test'); text.cfg.queueProperty("fixedcenter",true); }); // Apppend to document YAHOO.util.Event.onContentReady('config-body', function() { text.show(); }); // Add event listeners YAHOO.util.Event.addListener("text_show", "click", text.show, text, true); YAHOO.util.Event.addListener("text_hide", "click", text.hide, text, true); }