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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
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()
         {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.