mirror of
https://github.com/simon987/od-database.git
synced 2025-04-18 01:46:46 +00:00
Bug fix for pages buttons pt.2
This commit is contained in:
parent
a2327bac7c
commit
8f218f3c9d
@ -97,11 +97,10 @@
|
||||
|
||||
{% if show_captcha %}
|
||||
<script>function f(token) {
|
||||
{#document.getElementById("page").value = 0;#}
|
||||
document.getElementById("sfrm").submit();
|
||||
}</script>
|
||||
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
||||
<button id="s" class="g-recaptcha btn btn-primary btn-shadow" data-sitekey="6LcCXWkUAAAAAJo2NR9_m09Obn5YmDrI97sGrr2f" data-callback="f" style="float: right">Search</button>
|
||||
<button id="s" class="g-recaptcha btn btn-primary btn-shadow" data-sitekey="6LcCXWkUAAAAAJo2NR9_m09Obn5YmDrI97sGrr2f" data-callback="f" style="float: right" onclick="document.getElementById('page').value = 0">Search</button>
|
||||
{% else %}
|
||||
<input id="s" class="btn btn-primary btn-shadow" type="submit" value="Search" style="float: right">
|
||||
{% endif %}
|
||||
@ -259,11 +258,11 @@
|
||||
//Next button
|
||||
function nextPage() {
|
||||
document.getElementById("page").value = parseInt(document.getElementById("page").value) + 1;
|
||||
document.getElementById("s").click();
|
||||
grecaptcha.execute();
|
||||
}
|
||||
function prevPage() {
|
||||
document.getElementById("page").value = parseInt(document.getElementById("page").value) - 1;
|
||||
document.getElementById("s").click();
|
||||
grecaptcha.execute();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user