svn: /web/doc-editor/trunk/js/ui/task/ GetFileTask.js

From: Date: Wed, 23 Dec 2009 13:38:14 +0000
Subject: svn: /web/doc-editor/trunk/js/ui/task/ GetFileTask.js
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1394@lists.php.net to get a copy of this message
yannick Wed, 23 Dec 2009 13:38:14 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=292534 Log: Forget the condition..... Need to sleep ;) Changed paths: U web/doc-editor/trunk/js/ui/task/GetFileTask.js Modified: web/doc-editor/trunk/js/ui/task/GetFileTask.js =================================================================== --- web/doc-editor/trunk/js/ui/task/GetFileTask.js 2009-12-23 13:30:37 UTC (rev 292533) +++ web/doc-editor/trunk/js/ui/task/GetFileTask.js 2009-12-23 13:38:14 UTC (rev 292534) @@ -44,16 +44,19 @@ // Remove the mask from the editor Ext.get(id_prefix + '-PANEL-' + this.fid).unmask(); - // Display a warn message if this file containes some tab caracter. - Ext.MessageBox.show({ - title: 'Warning', - msg: String.format(_('The file <b> {0}</b> contains some tab caracters.<br>The editor have replace it with space caracters.'), this.fpath+this.fname), - buttons: Ext.MessageBox.OK, - icon: Ext.MessageBox.WARNING - }); + if( o.warn_tab ) { + // Display a warn message if this file containes some tab caracter. + Ext.MessageBox.show({ + title: 'Warning', + msg: String.format(_('The file <b> {0}</b> contains some tab caracters.<br>The editor have replace it with space caracters.'), this.fpath+this.fname), + buttons: Ext.MessageBox.OK, + icon: Ext.MessageBox.WARNING + }); + } + }, callback : function() {

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