Corrected backup maintenance page display during file download.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 22 Jul 2008 18:54:36 +0000 (18:54 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 22 Jul 2008 18:54:36 +0000 (18:54 +0000)
CHANGELOG.txt
admin/backups.php

index d237299924ff077aac5257286898cd0176f2e1c8..e528d7d8b37bf09efd3aa255237cc1446b1d56d0 100644 (file)
@@ -19,6 +19,10 @@ Legend:
 ! -> Note
 $ -> Affected files
 
+22-Jul-2008 Janusz Dobrowolski
+# Corrected backup maintenance page display during script download.
+$ /admin/backups.php
+
 20-Jul-2008 Janusz Dobrowolski
 # Corrected reports page display after yesterday change.
 $ /reporting/reports_main.php
index a37700dbd8c91aaeb0e96011659159af37339005..9796a492ce5c442ba79cd9dc5b71678aa9284b6c 100644 (file)
@@ -57,6 +57,7 @@ echo "
        function downloadBackup() {
                pFilename = document.forms[0].cmb_backups.options[document.forms[0].cmb_backups.selectedIndex].value
                document.location.replace('backups.php?c=ds&fn='+pFilename)
+               Behaviour.apply();
        }
        function uploadBackup() {
                if (document.forms[0].uploadfile.value=='') {
@@ -151,7 +152,8 @@ function handle_form($conn)
                        $filename = urlencode($_GET['fn']);
                        $msg = _("Backup is being downloaded...");
                        $msg .= "<script language='javascript'>";
-                       $msg .= "function download_file() {location.href ='backups.php?c=d&fn=$filename'}; window.onload=download_file";
+                       $msg .= "function download_file() {location.href ='backups.php?c=d&fn=$filename'}; 
+                               Behaviour.addLoadEvent(download_file);";
                        $msg .= "</script>";
                        return $msg;
                }