X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=js%2FQuarantineList.js;h=3c46a9bac2c46cf1135ccf486e863b45315b2fc3;hb=d19c27947f53c8999aacba18a7018d544c1761b8;hp=a59b966df256a4b1eabaff543950994307a51c20;hpb=d3e6c6a1f2532a7b326f9efe50d6b3ea71017091;p=pmg-gui.git diff --git a/js/QuarantineList.js b/js/QuarantineList.js index a59b966..3c46a9b 100644 --- a/js/QuarantineList.js +++ b/js/QuarantineList.js @@ -57,13 +57,12 @@ Ext.define('PMG.QuarantineList', { } }); }, - // extjs has no method to dynamically change the emptytext on - // grids, so we have to do it this way + // ExtJS cannot dynamically change the emptyText on grids, so implement ourself setEmptyText: function(emptyText) { let me = this; let view = me.getView(); let tableview = view.getView(); - tableview.emptyText = '
'+ (emptyText || view.notFoundText) + '
'; + tableview.emptyText = `
${emptyText || view.notFoundText}
`; }, load: function(callback) { @@ -73,8 +72,7 @@ Ext.define('PMG.QuarantineList', { let store = view.getStore(); if (view.emailSelection) { if (!me.lookupReference('email').getSelection()) { - // if the combobox has no selection we do not reload - return; + return; // if the combobox has no selection we do not reload } me.setEmptyText(); }