Ext.namespace('ui','ui.cmp'); ui.cmp.SystemUpdatePrompt = Ext.extend(Ext.Window, { id : 'sys-update-win', title : _('Refresh all data'), layout : 'form', width : 300, height : 200, resizable : false, modal : true, bodyStyle : 'padding:15px 15px 0', iconCls : 'iconRefresh', html : [ '
', _('Update all files from VCS'), '
', '
', _('This may take time. Thank you for your patience...'), '
', '
', _('Apply all tools'), '
', '
', _('Reload data'), '
' ].join(''), buttons : [{ id : 'btn-start-refresh', text : _('Start'), iconCls : 'iconStartRefresh', handler : function() { // Disable start button Ext.getCmp('btn-start-refresh').disable(); // Disable the close button for this win this.ownerCt.ownerCt.tools.close.setVisible(false); new ui.task.SystemUpdateTask(); } }] });