Merge #15884 - Fix #15880 Change "Show Query" link to a button

Pull-request: #15884
Fixes: #15880

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-02-13 22:47:06 +01:00
commit a0b903e626
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
2 changed files with 3 additions and 3 deletions

View File

@ -438,8 +438,8 @@ AJAX.registerOnload('sql.js', function () {
* @name appendToggleSpan
*/
// do not add this link more than once
if (! $('#sqlqueryform').find('a').is('#togglequerybox')) {
$('<a id="togglequerybox"></a>')
if (! $('#sqlqueryform').find('button').is('#togglequerybox')) {
$('<button class="btn btn-secondary" id="togglequerybox"></button>')
.html(Messages.strHideQueryBox)
.appendTo('#sqlqueryform')
// initially hidden because at this point, nothing else

View File

@ -81,4 +81,4 @@
{# This sqlqueryform div is used to load the delete form in the db search #}
</div>
{# Toggle query box link #}
<a id="togglequerybox"></a>
<button class="btn btn-secondary" id="togglequerybox"></button>