]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/ClamAVDatabase.js
attachement grid: set configs used on all use-sites as defaults
[pmg-gui.git] / js / ClamAVDatabase.js
index 5a3381f6e6d28c206b6a62107a67d5848620c2ab..d3f8e49c9263532626de96b69fc85b841fdc19d4 100644 (file)
@@ -1,4 +1,3 @@
-/*global Proxmox*/
 Ext.define('PMG.ClamAVDatabaseConfig', {
     extend: 'Proxmox.grid.ObjectGrid',
     alias: ['widget.pmgClamAVDatabaseConfig'],
@@ -11,13 +10,8 @@ Ext.define('PMG.ClamAVDatabaseConfig', {
        me.add_text_row('dbmirror', gettext('Database Mirror'),
                        { deleteEmpty: true, defaultValue: 'database.clamav.net' });
 
-       /*jslint confusion: true*/
-       /*defaultValue is a string above*/
-       me.add_boolean_row('safebrowsing', gettext('Google Safe Browsing'),
-                          { defaultValue: 1 });
        me.add_boolean_row('scriptedupdates', gettext('Incremental Download'),
                           { defaultValue: 0 });
-       /*jslint confusion: false*/
 
        var baseurl = '/config/clamav';
 
@@ -72,7 +66,7 @@ Ext.define('PMG.ClamAVDatabaseStatus', {
            },
            sorters: {
                property: 'name',
-               order: 'DESC',
+               direction: 'ASC',
            },
        });
 
@@ -113,10 +107,7 @@ Ext.define('PMG.ClamAVDatabaseStatus', {
 
        me.callParent();
 
-       /*jslint confusion: true*/
-       /*monStoreErrors is a bool above*/
        Proxmox.Utils.monStoreErrors(me.getView(), me.store, true);
-       /*jslint confusion: false*/
     },
 });