svn: /web/doc-editor/trunk/js/ui/cmp/ FilePanel.js

From: Date: Wed, 28 Apr 2010 21:02:04 +0000
Subject: svn: /web/doc-editor/trunk/js/ui/cmp/ FilePanel.js
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1831@lists.php.net to get a copy of this message
yannick Wed, 28 Apr 2010 21:02:04 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=298731 Log: Disable the patch button. We can't submit patch anymore. See discussion on mainling-list between christopher and me. Changed paths: U web/doc-editor/trunk/js/ui/cmp/FilePanel.js Modified: web/doc-editor/trunk/js/ui/cmp/FilePanel.js =================================================================== --- web/doc-editor/trunk/js/ui/cmp/FilePanel.js 2010-04-28 20:59:12 UTC (rev 298730) +++ web/doc-editor/trunk/js/ui/cmp/FilePanel.js 2010-04-28 21:02:04 UTC (rev 298731) @@ -496,7 +496,7 @@ // fid, fpath, fname, lang, // readOnly, indicate this file is readonly // isTrans pendingTranslate file config -// isPatch, fuid, pending patch file config +// isPatch, fuid, pending patch file config // TODO: obsolète. Inutile de fournir une interface spécifique pour les patchs // parser, storeRecord, // syncScrollCB {true | false}, display sync-scroll checkbox // syncScroll {true | false}, indicate whether sync the scroll with corresponding file @@ -604,7 +604,9 @@ }]; if (!this.readOnly) { - this.tbar = (this.isPatch) ? [ + /* + this.tbar = + (this.isPatch) ? [ // patch file pane tbar new ui.cmp._FilePanel.tbar.items.common({ prefix : this.prefix, @@ -660,7 +662,12 @@ file: this.lang + this.fpath + this.fname }) ] : [ + */ + + // Tbar definition + // en/lang file pane tbar + this.tbar = [ new ui.cmp._FilePanel.tbar.items.common({ prefix : this.prefix, fid : this.fid, @@ -778,7 +785,9 @@ break; } } - }, { + } + /* + , { id : id_prefix + '-FILE-' + this.fid + '-btn-saveas', scope : this, tooltip : _('<b>Save as</b> a patch'), @@ -796,7 +805,9 @@ defaultEmail : (PhDOE.userLogin !== 'anonymous') ? PhDOE.userLogin + '@php.net' : '' }).show(); } - }] + } + */ + ] }, new ui.cmp._FilePanel.tbar.items.undoRedo({ id_prefix : id_prefix, fid : this.fid @@ -830,6 +841,9 @@ ]; } + + + Ext.apply(this, { title : this.title, @@ -914,7 +928,7 @@ // Desactivate save button if ( !this.isPatch ) { Ext.getCmp(id_prefix + '-FILE-' + this.fid + '-btn-save').disable(); - Ext.getCmp(id_prefix + '-FILE-' + this.fid + '-btn-saveas').disable(); + //Ext.getCmp(id_prefix + '-FILE-' + this.fid + '-btn-saveas').disable(); } // Mark as modified @@ -951,7 +965,7 @@ if ( !this.isPatch ) { Ext.getCmp(id_prefix + '-FILE-' + this.fid + '-btn-save').enable(); - Ext.getCmp(id_prefix + '-FILE-' + this.fid + '-btn-saveas').enable(); + //Ext.getCmp(id_prefix + '-FILE-' + this.fid + '-btn-saveas').enable(); } // Enable the undo btn

« previous php.doc.web (#1831) next »