]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/Application.js
spam-info-grid: style the spam info grid via css variables
[pmg-gui.git] / js / Application.js
index 38c80e8983440d8aec3a7ca5b94b152beb472ea8..f5f673c5420050fcf1ce1df38210e81835b45b1a 100644 (file)
@@ -1,4 +1,3 @@
-/*global Proxmox*/
 Ext.define('PMG.Application', {
     extend: 'Ext.app.Application',
 
@@ -6,7 +5,7 @@ Ext.define('PMG.Application', {
     appProperty: 'app',
 
     stores: [
-       'NavigationStore'
+       'NavigationStore',
     ],
 
     layout: 'fit',
@@ -31,10 +30,10 @@ Ext.define('PMG.Application', {
        me.currentView.destroy();
        me.currentView = Ext.create({
            xtype: view,
-           targetview: me.targetview
+           targetview: me.targetview,
        });
        if (skipCheck !== true) {
-           Proxmox.Utils.checked_command(function() {}); // display subscription status
+           Proxmox.Utils.checked_command(Ext.emptyFn); // display subscription status
        }
     },
 
@@ -58,7 +57,7 @@ Ext.define('PMG.Application', {
        if (pathname === "/quarantine") {
            me.targetview = 'quarantineview';
 
-           if (qs.ticket == undefined && loggedin) {
+           if (qs.ticket === undefined && loggedin) {
                me.view = 'quarantineview';
            }
        } else if (loggedin && cookie.substr(0, 7) !== 'PMGQUAR') {
@@ -68,9 +67,9 @@ Ext.define('PMG.Application', {
        PMG.view = me.view;
        me.currentView = Ext.create({
            xtype: me.view,
-           targetview: me.targetview
+           targetview: me.targetview,
        });
-    }
+    },
 });
 
 Ext.application('PMG.Application');