Bug correction
Position get paramater appeared multiple times when submitting form multiple times.
This commit is contained in:
parent
0c42625571
commit
d7d53d643e
@ -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
2
js.js
@ -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]+"'/>";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user