* fix for restore.

This commit is contained in:
wangyidong
2017-05-12 11:28:22 +08:00
parent 89cc81c549
commit f1eb150a2b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ $(function()
$('.restore').click(function()
{
url = $(this).attr('href') + '&confirm=yes';
url = $(this).attr('href');
bootbox.confirm(confirmRestore, function(result)
{
if(result)
+1 -1
View File
@@ -49,7 +49,7 @@
<?php if($i == 0):?>
<td <?php if($rowspan > 1) echo "rowspan='$rowspan'"?>>
<?php
if(common::hasPriv('backup', 'restore')) echo html::a(inlink('restore', "file=$backupFile->name"), $lang->backup->restore, 'hiddenwin', "class='restore'");
if(common::hasPriv('backup', 'restore')) echo html::a(inlink('restore', "file={$backupFile->name}&confirm=yes"), $lang->backup->restore, 'hiddenwin', "class='restore'");
if(common::hasPriv('backup', 'delete')) echo html::a(inlink('delete', "file=$backupFile->name"), $lang->delete, 'hiddenwin');
?>
</td>