]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/RuleInfo.js
remove BETA, do not display repoid
[pmg-gui.git] / js / RuleInfo.js
index ac81062cf42e90cdc79eb4e9d2f0a86acef1adb5..8e15b20b2287f678323d8e50e18579f8d2b6f3f4 100644 (file)
@@ -1,4 +1,6 @@
 /*global Proxmox*/
+/*jslint confusion: true*/
+/* bind is a function function */
 Ext.define('PMG.RuleInfo', {
     extend: 'Ext.panel.Panel',
     xtype: 'pmgRuleInfo',
@@ -113,7 +115,7 @@ Ext.define('PMG.RuleInfo', {
                            // FIXME
                            // actions have the ogroup as a string
                            // -> parseInt
-                           return (ids.indexOf(parseInt(record.data[idField])) === -1);
+                           return (ids.indexOf(parseInt(record.data[idField], 10)) === -1);
                        }
                    });
                    store.load();
@@ -163,7 +165,7 @@ Ext.define('PMG.RuleInfo', {
 
     viewModel: {
        data: {
-           baseurl: undefined
+           baseurl: ''
        },
 
        stores: {
@@ -233,9 +235,9 @@ Ext.define('PMG.RuleInfo', {
     items: [
        {
            xtype: 'panel',
-           bodyPadding: 10,
+           bodyPadding: '10 10 10 10',
            data: {
-               name: false,
+               name: ''
            },
            bind: {
                data: {