diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-12-07 00:14:38 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-12-07 00:14:38 +0000 |
commit | 498d3208b2dc2417639f3cd177ccc7b9266f0e73 (patch) | |
tree | 0a82bfb55dc8f1bc68b06e1ae7f7e492aaf578f8 /packages | |
parent | 16caab8b545becc84d9a222937f9011e0426c14e (diff) | |
download | pfsense-packages-498d3208b2dc2417639f3cd177ccc7b9266f0e73.tar.gz pfsense-packages-498d3208b2dc2417639f3cd177ccc7b9266f0e73.tar.bz2 pfsense-packages-498d3208b2dc2417639f3cd177ccc7b9266f0e73.zip |
Unbreak backup ajax when a savemsg is not present
Diffstat (limited to 'packages')
-rw-r--r-- | packages/autoconfigbackup/autoconfigbackup.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php index 5b3bf26f..403bd6f6 100644 --- a/packages/autoconfigbackup/autoconfigbackup.php +++ b/packages/autoconfigbackup/autoconfigbackup.php @@ -197,7 +197,7 @@ include("head.inc"); ?> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <script type="text/javascript"> - function restore_item() { + function backupnow() { scroll(0,0); var reason = prompt ("Enter the reason for the backup",""); var url = "/autoconfigbackup.php"; @@ -209,7 +209,8 @@ include("head.inc"); parameters: pars, onComplete: backupcomplete }); - $('savemsg').innerHTML = ''; + if($('savemsg')) + $('savemsg').innerHTML = ''; $('feedbackdiv').innerHTML = "<img src='themes/metallic/images/misc/loader.gif'> One moment please, saving backup to portal.pfsense.org...<p/>"; } function backupcomplete(transport) { |