Browse Source

Bug correction

Position get paramater appeared multiple times when submitting form
multiple times.
master
Phyks 9 years ago
parent
commit
d7d53d643e
  1. 3
      index.php
  2. 2
      js.js

3
index.php

@ -103,7 +103,8 @@ @@ -103,7 +103,8 @@
<?php
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>

2
js.js

@ -457,7 +457,7 @@ window.onload = function() { @@ -457,7 +457,7 @@ window.onload = function() {
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]+"'/>";
}

Loading…
Cancel
Save