Fix #16735 - Found 2 elements with non-unique id #maxRowsForm

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-03-14 12:02:46 +01:00
parent 8992ef095f
commit b8f6595545
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
2 changed files with 3 additions and 3 deletions

View File

@ -214,7 +214,7 @@ AJAX.registerTeardown('sql.js', function () {
$('body').off('click', '#simulate_dml');
$('body').off('keyup', '#sqlqueryform');
$('body').off('click', 'form[name="resultsForm"].ajax button[name="submit_mult"], form[name="resultsForm"].ajax input[name="submit_mult"]');
$(document).off('submit', '#maxRowsForm');
$(document).off('submit', '.maxRowsForm');
$(document).off('click', '#view_as');
});
@ -840,7 +840,7 @@ AJAX.registerOnload('sql.js', function () {
$.post(url, submitData, AJAX.responseHandler);
});
$(document).on('submit', '#maxRowsForm', function () {
$(document).on('submit', '.maxRowsForm', function () {
var unlimNumRows = $(this).find('input[name="unlim_num_rows"]').val();
var maxRowsCheck = Functions.checkFormElementInRange(

View File

@ -40,7 +40,7 @@
</div>
</td>
<td class="navigation_goto">
<form action="{{ url('/sql') }}" method="post" id="maxRowsForm">
<form action="{{ url('/sql') }}" method="post" class="maxRowsForm">
{{ get_hidden_fields(navigation.hidden_fields|merge({
'pos': navigation.pos,
'unlim_num_rows': unlim_num_rows