[enh] New delete backup API

This commit is contained in:
zamentur 2015-10-02 02:24:42 +02:00
parent bec1798f8d
commit c9c73b9c85
2 changed files with 2 additions and 2 deletions

View file

@ -8187,7 +8187,7 @@ var app = Sammy('#main', function (sam) {
y18n.t('backup'), y18n.t('backup'),
y18n.t('confirm_delete', [c.params['archive']]), y18n.t('confirm_delete', [c.params['archive']]),
function(){ function(){
c.api('/backup/'+c.params['archive'], function(data) { c.api('/backup/archives/'+c.params['archive'], function(data) {
c.redirect('#/backup/'+ c.params['storage']); c.redirect('#/backup/'+ c.params['storage']);
}, 'DELETE'); }, 'DELETE');
}, },

View file

@ -1972,7 +1972,7 @@ var app = Sammy('#main', function (sam) {
y18n.t('backup'), y18n.t('backup'),
y18n.t('confirm_delete', [c.params['archive']]), y18n.t('confirm_delete', [c.params['archive']]),
function(){ function(){
c.api('/backup/'+c.params['archive'], function(data) { c.api('/backup/archives/'+c.params['archive'], function(data) {
c.redirect('#/backup/'+ c.params['storage']); c.redirect('#/backup/'+ c.params['storage']);
}, 'DELETE'); }, 'DELETE');
}, },