]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/RuleInfo.js
correctly use 'getStore' instead of 'get' and reload instead of load
[pmg-gui.git] / js / RuleInfo.js
index 621ebfb81e2a826b5d4af47c9e5ecd9c64974d25..8e15b20b2287f678323d8e50e18579f8d2b6f3f4 100644 (file)
@@ -115,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();
@@ -165,7 +165,7 @@ Ext.define('PMG.RuleInfo', {
 
     viewModel: {
        data: {
-           baseurl: undefined
+           baseurl: ''
        },
 
        stores: {