Ext.namespace('ui','ui.cmp'); ui.cmp.CheckBuildPrompt = Ext.extend(Ext.Window, { title : _('Check build'), iconCls : 'iconCheckBuild', layout : 'form', width : 350, height : 200, resizable : false, modal : true, bodyStyle : 'padding:5px 5px 0', labelAlign : 'top', buttons : [{ id : 'win-check-build-btn-submit', text : _('Go !'), handler : function() { new ui.task.CheckBuildTask(); this.ownerCt.ownerCt.close(); } }], initComponent : function() { Ext.apply(this, { items : [{ xtype : 'panel', modal : false, baseCls : 'x-plain', bodyStyle : 'padding:5px 5px 0', html : _('You\'re about to check the build via this command:') + '

/usr/bin/php configure.php --with-lang=' + PhDOE.user.lang + '
' }, { xtype : 'checkbox', id : 'option-xml-details', name : 'option-xml-details', checked : false, hideLabel : true, boxLabel : _('Enable detailed XML error messages'), listeners : { check: function(c, state) { Ext.get('option-xml-details-span').dom.style.visibility = (state) ? 'visible' : 'hidden'; Ext.get('option-xml-details-div').dom.style.visibility = (state) ? 'visible' : 'hidden'; } } }] }); ui.cmp.CheckBuildPrompt.superclass.initComponent.call(this); } });