Bug correction

Position get paramater appeared multiple times when submitting form
multiple times.
This commit is contained in:
Phyks 2013-08-01 14:29:31 +02:00
parent 0c42625571
commit d7d53d643e
2 changed files with 3 additions and 2 deletions

View File

@ -103,6 +103,7 @@
<?php <?php
foreach($_GET as $GET=>$param) foreach($_GET as $GET=>$param)
{ {
if($GET != 'position')
echo '<input type="hidden" name="'.htmlspecialchars($GET).'" value="'.htmlspecialchars($param).'"/>'; echo '<input type="hidden" name="'.htmlspecialchars($GET).'" value="'.htmlspecialchars($param).'"/>';
} }
?> ?>

2
js.js
View File

@ -457,7 +457,7 @@ window.onload = function() {
for(GET in params) //Define hidden input to keep params for(GET in params) //Define hidden input to keep params
{ {
if(GET != '') if(GET != '' && GET != "position")
{ {
input_params += "<input type='hidden' name='"+GET+"' value='"+params[GET]+"'/>"; input_params += "<input type='hidden' name='"+GET+"' value='"+params[GET]+"'/>";
} }