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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sun, 04 Apr 2010 07:32:09 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=297448

Log:
Add an option to allow disable the notify popup

Changed paths:
    U   web/doc-editor/trunk/js/ui/task/UpdateConfTask.js

Modified: web/doc-editor/trunk/js/ui/task/UpdateConfTask.js
===================================================================
--- web/doc-editor/trunk/js/ui/task/UpdateConfTask.js	2010-04-04 04:34:14 UTC (rev 297447)
+++ web/doc-editor/trunk/js/ui/task/UpdateConfTask.js	2010-04-04 07:32:09 UTC (rev 297448)
@@ -1,6 +1,6 @@
 Ext.namespace('ui','ui.task');

-// config - { item, value }
+// config - { item, value, [notify=true] }
 ui.task.UpdateConfTask = function(config)
 {
     Ext.apply(this, config);
@@ -31,10 +31,11 @@
             if( this.item == "newFileNbDisplay" ) {
                 ui.component.PendingTranslateGrid.getInstance().store.reload();
             }
-
+
             // Notify
-            PhDOE.notify('info', _('Option saved'), _('Option has been saved successfully !'));
-
+            if( this.notify !== false ) {
+                PhDOE.notify('info', _('Option saved'), _('Option has been saved successfully !'));
+            }
         }
     });
 };
\ No newline at end of file
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.