From f1eb150a2b5fef49aed29a92e5ee8c4f41159067 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 12 May 2017 11:28:22 +0800 Subject: [PATCH] * fix for restore. --- module/backup/js/index.js | 2 +- module/backup/view/index.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/backup/js/index.js b/module/backup/js/index.js index d01da68c2e..4fc17c37f2 100644 --- a/module/backup/js/index.js +++ b/module/backup/js/index.js @@ -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) diff --git a/module/backup/view/index.html.php b/module/backup/view/index.html.php index e913832a12..ec6158c16c 100644 --- a/module/backup/view/index.html.php +++ b/module/backup/view/index.html.php @@ -49,7 +49,7 @@ 1) echo "rowspan='$rowspan'"?>> 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'); ?>