]> git.p6c8.net - jirafeau_project.git/commitdiff
f.php: fix js error in download page
authorJerome Jutteau <mojo@couak.net>
Mon, 23 Mar 2015 12:48:52 +0000 (13:48 +0100)
committerJerome Jutteau <mojo@couak.net>
Mon, 23 Mar 2015 12:48:52 +0000 (13:48 +0100)
f.php

diff --git a/f.php b/f.php
index 9bbe4d9abddf57db07a5577b92cb8ff1ba72bad8..0797c40e4ad469f1cb44640f6c5e9fff02b6db7a 100644 (file)
--- a/f.php
+++ b/f.php
@@ -198,7 +198,7 @@ if ($cfg['download_page'] && !$password_challenged && !$do_download && !$do_prev
         if (!empty($crypt_key))
             echo '&amp;k=' . urlencode($crypt_key);
 ?>';
-        document.getElementById('submit_download').submit ();"/><?php
+        document.getElementById('submit_post').submit ();"/><?php
 
         if ($cfg['download_page'] && $cfg['preview'] && jirafeau_is_viewable($link['mime_type']))
         {
@@ -209,7 +209,7 @@ if ($cfg['download_page'] && !$password_challenged && !$do_download && !$do_prev
         if (!empty($crypt_key))
             echo '&amp;k=' . urlencode($crypt_key);
 ?>';
-        document.getElementById('submit_preview').submit ();"/><?php
+        document.getElementById('submit_post').submit ();"/><?php
         }
         echo '</td></tr>';
         echo '</table></fieldset></form></div>';

patrick-canterino.de