followup code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-07-25 13:22:42 +02:00
parent 2280ae09a9
commit d0af658440

View 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,