]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
followup code cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 25 Jul 2019 11:22:42 +0000 (13:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 25 Jul 2019 11:22:42 +0000 (13:22 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
button/Button.js

index 266bb8350d6497c59192947cb8f7a75fbdcbb15b..846db7cc562f772ac2d093a7a4f8e4430ca2aecf 100644 (file)
@@ -133,8 +133,12 @@ Ext.define('Proxmox.button.StdRemoveButton', {
 
     handler: function(btn, event, rec) {
        var me = this;
+
        var url = me.getUrl(rec);
-       if (typeof me.delay !== 'undefined') url += "?delay=" + me.delay;
+
+       if (typeof me.delay !== 'undefined' && me .delay >= 0) {
+           url += "?delay=" + me.delay;
+       }
 
        Proxmox.Utils.API2Request({
            url: url,