cvs: doc-editor /js main.js /themes style.css
| From: | Yannick Torres | Date: | Thu, 02 Apr 2009 20:36:42 +0000 |
| Subject: | cvs: doc-editor /js main.js /themes style.css | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3646@lists.php.net to get a copy of this message | ||
yannick Thu Apr 2 20:36:42 2009 UTC
Modified files:
/doc-editor/js main.js
/doc-editor/themes style.css
Log:
display the result of the check build script into a tab rather than a window
http://cvs.php.net/viewvc.cgi/doc-editor/js/main.js?r1=1.21&r2=1.22&diff_format=u
Index: doc-editor/js/main.js
diff -u doc-editor/js/main.js:1.21 doc-editor/js/main.js:1.22
--- doc-editor/js/main.js:1.21 Tue Mar 31 20:28:39 2009
+++ doc-editor/js/main.js Thu Apr 2 20:36:42 2009
@@ -2436,23 +2436,21 @@
this.TaskPing.delay(30000);
// Display
- winStatus = new Ext.Window({
- title: 'Status',
- width: 450,
- height: 350,
- resizable: false,
- modal: true,
+ if (
Ext.getCmp('main-panel').findById('check_build_panel') ) {
+
Ext.getCmp('main-panel').remove('check_build_panel');
+ }
+
+ Ext.getCmp('main-panel').add({
+ xtype: 'panel',
+ id: 'check_build_panel',
+ title: 'Check Build Result',
+ closable: true,
autoScroll: true,
- bodyStyle: 'background-color: white; padding: 5px;',
- html: o.mess,
- buttons: [{
- text: 'Close',
- handler: function(){
- winStatus.close();
- }
- }]
+ iconCls: 'checkBuild',
+ html: '<div
class="check-build-content">'+o.mess+'</div>'
});
- winStatus.show();
+
Ext.getCmp('main-panel').setActiveTab('check_build_panel');
+
}
}
});
@@ -2508,8 +2506,9 @@
// If this take over 30sec (max Keep-Alive time), we are on
failure !
- function checkLockFile(){
+ function checkLockFile(scope){
Ext.Ajax.request({
+ scope: scope,
url: './php/controller.php',
params: {
task: 'check-lock-file',
@@ -2519,7 +2518,7 @@
var o = Ext.util.JSON.decode(action.responseText);
if (!o.success) {
Ext.getBody().unmask();
- displayMess();
+ displayMess(this);
}
else {
builcheckDelay.delay(5000);
@@ -2534,8 +2533,8 @@
// We check ever XX secondes if the check build is finish, or
not.
var builcheckDelay = new Ext.util.DelayedTask(function(){
- checkLockFile();
- });
+ checkLockFile(this);
+ }, this);
builcheckDelay.delay(5000);
}
});
http://cvs.php.net/viewvc.cgi/doc-editor/themes/style.css?r1=1.3&r2=1.4&diff_format=u
Index: doc-editor/themes/style.css
diff -u doc-editor/themes/style.css:1.3 doc-editor/themes/style.css:1.4
--- doc-editor/themes/style.css:1.3 Sun Mar 29 20:44:48 2009
+++ doc-editor/themes/style.css Thu Apr 2 20:36:42 2009
@@ -297,6 +297,12 @@
border: 1px solid #d7d7d7;
}
+.check-build-content {
+ margin: 5px 5px;
+ font-family: tahoma,arial,helvetica,sans-serif;
+ font-size: 11px;
+}
+
#confMenu {
background: white;
font: 11px Arial, Helvetica, sans-serif;