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

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]+"'/>";
} }