diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-12-06 23:57:35 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-12-06 23:57:35 +0000 |
commit | 39637e44e81156b05377bcb6ddcb70314f191781 (patch) | |
tree | 497adc82763acddb88f3b6f07b18c8d24cf86e8e /packages | |
parent | 4dc4f54bd00c1a871409495ad94cc2ab682c7a22 (diff) | |
download | pfsense-packages-39637e44e81156b05377bcb6ddcb70314f191781.tar.gz pfsense-packages-39637e44e81156b05377bcb6ddcb70314f191781.tar.bz2 pfsense-packages-39637e44e81156b05377bcb6ddcb70314f191781.zip |
Add are you sure question before restoring
Diffstat (limited to 'packages')
-rw-r--r-- | packages/autoconfigbackup/autoconfigbackup.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php index 32600bb8..49a61bbd 100644 --- a/packages/autoconfigbackup/autoconfigbackup.php +++ b/packages/autoconfigbackup/autoconfigbackup.php @@ -190,9 +190,18 @@ $pgtitle = "Diagnostics: Auto Configuration Backup"; include("head.inc"); ?> +<script type="text/javascript"> +<script> + function confirmRestore(delUrl) { + if (confirm("Are you sure you want to restore?")) { + document.location = delUrl; + } + } +</script> +</script> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <script type="text/javascript"> - function backupnow() { + function restore_item() { scroll(0,0); var reason = prompt ("Enter the reason for the backup",""); var url = "/autoconfigbackup.php"; @@ -251,7 +260,7 @@ include("head.inc"); <td class="listlr"> <?= $cv['time']; ?></td> <td class="listbg"> <?= $cv['reason']; ?></td> <td colspan="2" valign="middle" class="list" nowrap> - <a href="autoconfigbackup.php?newver=<?=urlencode($cv['time']);?>"> + <a onClick="return confirm('Are you sure you want to restore <?= $cv['time']; ?>?')" href="autoconfigbackup.php?newver=<?=urlencode($cv['time']);?>"> <img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"> </a> <a href="autoconfigbackup.php?download=<?=urlencode($cv['time']);?>"> |