proxmoxStdRemoveButton: add getUrl method
This commit is contained in:
parent
a1d5d0649e
commit
375c055b9a
@ -86,6 +86,10 @@ Ext.define('Proxmox.button.StdRemoveButton', {
|
||||
|
||||
baseurl: undefined,
|
||||
|
||||
getUrl: function(rec) {
|
||||
return me.baseurl + '/' + rec.getId();
|
||||
},
|
||||
|
||||
callback: function(options, success, response) {},
|
||||
|
||||
getRecordName: function(rec) { return rec.getId() },
|
||||
@ -103,7 +107,7 @@ Ext.define('Proxmox.button.StdRemoveButton', {
|
||||
var me = this;
|
||||
|
||||
Proxmox.Utils.API2Request({
|
||||
url: me.baseurl + '/' + rec.getId(),
|
||||
url: me.getUrl(rec),
|
||||
method: 'DELETE',
|
||||
waitMsgTarget: me.waitMsgTarget,
|
||||
callback: me.callback,
|
||||
|
Loading…
Reference in New Issue
Block a user