clean URL query
This commit is contained in:
parent
db46df7f8f
commit
46552a75f6
17
options.php
17
options.php
@ -385,12 +385,12 @@ Exemples: <?= $_SERVER['REMOTE_ADDR']; ?>/24 <?= $_SERVER['SERVER_NAME']; ?> 10.
|
|||||||
<div class="inverted field">
|
<div class="inverted field">
|
||||||
<label for="TSelect" title="-T">Intensité des tests de version</label>
|
<label for="TSelect" title="-T">Intensité des tests de version</label>
|
||||||
<select id="TSelect" class="ui clearable dropdown" name="-T">
|
<select id="TSelect" class="ui clearable dropdown" name="-T">
|
||||||
<option>Paranoïaque</option>
|
<option value="">Normal</option>
|
||||||
<option>Sournois</option>
|
<option value="0">Paranoïaque</option>
|
||||||
<option>Poli</option>
|
<option value="1">Sournois</option>
|
||||||
<option selected>Normal</option>
|
<option value="2">Poli</option>
|
||||||
<option>Aggressif</option>
|
<option value="4">Aggressif</option>
|
||||||
<option>Dément</option>
|
<option value="5">Dément</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -813,6 +813,11 @@ Exemples: <?= $_SERVER['REMOTE_ADDR']; ?>/24 <?= $_SERVER['SERVER_NAME']; ?> 10.
|
|||||||
closeIcon: true,
|
closeIcon: true,
|
||||||
position: 'bottom right',
|
position: 'bottom right',
|
||||||
})
|
})
|
||||||
|
for (input of document.querySelectorAll("input[name]")) {
|
||||||
|
if (!input.value || (input.type == "checkbox" && !input.checked)) {
|
||||||
|
input.name = ""
|
||||||
|
}
|
||||||
|
}
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user