]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - button/Button.js
followup code cleanup
[proxmox-widget-toolkit.git] / 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,