svn: /web/doc-editor/trunk/js/ main.js util.js

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sat, 13 Mar 2010 16:13:15 +0000

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

Log:
CleanUp code & fix IE specific bugs*

Changed paths:
    U   web/doc-editor/trunk/js/main.js
    U   web/doc-editor/trunk/js/util.js

Modified: web/doc-editor/trunk/js/main.js
===================================================================
--- web/doc-editor/trunk/js/main.js	2010-03-13 15:39:34 UTC (rev 296146)
+++ web/doc-editor/trunk/js/main.js	2010-03-13 16:13:15 UTC (rev 296147)
@@ -88,11 +88,11 @@

             //Load external data
             // Mails ?
-            if( this.userConf['mainAppLoadMailsAtStartUp'] ) {
+            if( this.userConf.mainAppLoadMailsAtStartUp ) {
                 ui.component.PortletLocalMail.getInstance().reloadData();
             }
             // Bugs ?
-            if( this.userConf['mainAppLoadBugsAtStartUp'] ) {
+            if( this.userConf.mainAppLoadBugsAtStartUp ) {
                 ui.component.PortletBugs.getInstance().reloadData();
             }
         },

Modified: web/doc-editor/trunk/js/util.js
===================================================================
--- web/doc-editor/trunk/js/util.js	2010-03-13 15:39:34 UTC (rev 296146)
+++ web/doc-editor/trunk/js/util.js	2010-03-13 16:13:15 UTC (rev 296147)
@@ -3,14 +3,16 @@
 // javascript debug-logging wrapper
 function log()
 {
-    if(console) console.log.apply(this, arguments);
+    if(console) {
+        console.log.apply(this, arguments);
+    }
 }

 // i18n function
 function _(key)
 {
     try {
-        var str = i18n[key]
+        var str = i18n[key];

         if (str === undefined) {
             str = key;
@@ -56,7 +58,7 @@
         if (original_cb !== undefined) {
             Ext.callback(original_cb, config.scope, [options, success, response]);
         }
-    }
+    };

     Ext.Ajax.request(config);
-}
+}
\ 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.