Tine.log.err() is not working in IE: use error()
authorPhilipp Schüle <p.schuele@metaways.de>
Thu, 19 Feb 2015 20:21:26 +0000 (21:21 +0100)
committerPhilipp Schüle <p.schuele@metaways.de>
Fri, 20 Feb 2015 09:15:56 +0000 (10:15 +0100)
Change-Id: I4dd0e0860b9e4804041e9573e65c6874218ecf19
Reviewed-on: http://gerrit.tine20.com/customers/1677
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
Tested-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Tinebase/js/ApplicationStarter.js
tine20/Tinebase/js/widgets/MainScreen.js
tine20/Tinebase/js/widgets/customfields/EditDialogPlugin.js
tine20/Tinebase/js/widgets/customfields/Field.js
tine20/Tinebase/js/widgets/dialog/PreferencesPanel.js

index 742a9cf..d3c119f 100644 (file)
@@ -279,7 +279,7 @@ Tine.Tinebase.ApplicationStarter = {
         
         var app = Tine.Tinebase.appMgr.get(appName);
         if (! app) {
-            Tine.log.err('Application ' + appName + ' not found!');
+            Tine.log.error('Application ' + appName + ' not found!');
             return null;
         }
         
@@ -307,7 +307,7 @@ Tine.Tinebase.ApplicationStarter = {
         
         if (filterconfig) {
             if (filterconfig.hasOwnProperty('options') && (filterconfig.options.hasOwnProperty('jsFilterType') || filterconfig.options.hasOwnProperty('jsFilterValueType'))) {
-                Tine.log.err('jsFilterType and jsFilterValueType are deprecated. Use jsConfig.<property> instead.');
+                Tine.log.error('jsFilterType and jsFilterValueType are deprecated. Use jsConfig.<property> instead.');
             }
             // if js filter is defined in filterconfig.options, take this and return
             if (filterconfig.hasOwnProperty('jsConfig')) {
index 70366bc..400035c 100644 (file)
@@ -99,8 +99,8 @@ Ext.extend(Tine.widgets.MainScreen, Ext.util.Observable, {
                     plugins: [this.getWestPanel().getFilterPlugin(contentType)]
                 });
             } catch (e) {
-                Tine.log.err('Could not create centerPanel "Tine.' + this.app.appName + '.' + contentType + this.centerPanelClassNameSuffix + '"');
-                Tine.log.err(e.stack ? e.stack : e);
+                Tine.log.error('Could not create centerPanel "Tine.' + this.app.appName + '.' + contentType + this.centerPanelClassNameSuffix + '"');
+                Tine.log.error(e.stack ? e.stack : e);
                 this[contentType + this.centerPanelClassNameSuffix] = new Ext.Panel({html: 'ERROR'});
             }
         }
@@ -133,8 +133,8 @@ Ext.extend(Tine.widgets.MainScreen, Ext.util.Observable, {
             try {
                 this[contentType + 'ActionToolbar'] = this[contentType + this.centerPanelClassNameSuffix].getActionToolbar();
             } catch (e) {
-                Tine.log.err('Could not create northPanel');
-                Tine.log.err(e.stack ? e.stack : e);
+                Tine.log.error('Could not create northPanel');
+                Tine.log.error(e.stack ? e.stack : e);
                 this[contentType + 'ActionToolbar'] = new Ext.Panel({html: 'ERROR'});
             }
         }
@@ -209,8 +209,8 @@ Ext.extend(Tine.widgets.MainScreen, Ext.util.Observable, {
                 if(Tine[this.app.name].hasOwnProperty(wpName)) this[wpName] = new Tine[this.app.appName][wpName](wpconfig);
                 else this[wpName] = new Tine.widgets.mainscreen.WestPanel(wpconfig);
             } catch (e) {
-                Tine.log.err('Could not create westPanel');
-                Tine.log.err(e.stack ? e.stack : e);
+                Tine.log.error('Could not create westPanel');
+                Tine.log.error(e.stack ? e.stack : e);
                 this[wpName] = new Ext.Panel({html: 'ERROR'});
             }
         }
index 7d1f201..609c265 100644 (file)
@@ -159,7 +159,7 @@ Tine.widgets.customfields.EditDialogPlugin.prototype = {
                 
             } catch (e) {
                 Tine.log.debug(e);
-                Tine.log.err('Unable to create custom field "' + cfConfig.get('name') + '". Check definition!');
+                Tine.log.error('Unable to create custom field "' + cfConfig.get('name') + '". Check definition!');
             }
         }, this);
         
index 8b91a89..3d7075a 100644 (file)
@@ -23,7 +23,7 @@ Tine.widgets.customfields.Field = {
         Tine.log.debug(cfConfig);
         
         if (! cfConfig) {
-            Tine.log.err('cfConfig empty!');
+            Tine.log.error('cfConfig empty!');
             return;
         }
         
@@ -108,7 +108,7 @@ Tine.widgets.customfields.Field = {
             return fieldObj;
         } catch (e) {
             Tine.log.debug(e);
-            Tine.log.err('Unable to create custom field "' + cfConfig.get('name') + '". Check definition!');
+            Tine.log.error('Unable to create custom field "' + cfConfig.get('name') + '". Check definition!');
         }
     }
 };
index c00d93f..def3cff 100644 (file)
@@ -176,7 +176,7 @@ Tine.widgets.dialog.PreferencesPanel = Ext.extend(Ext.Panel, {
                     pref.fieldObj = fieldObj;
                 } catch (e) {
                     Tine.log.debug(e);
-                    Tine.log.err('Unable to create preference field "' + pref.get('name') + '". Check definition!');
+                    Tine.log.error('Unable to create preference field "' + pref.get('name') + '". Check definition!');
                     this.prefStore.remove(pref);
                 }
             }, this);