Skip to content

Commit

Permalink
Change Show Query Link to button
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammed Rabeeh <mohammadrabeeh@gmail.com>
  • Loading branch information
rabeehrz authored and williamdes committed Feb 13, 2020
1 parent fa2fa67 commit c7cc69a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/sql.js
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/database/search/main.twig
Expand Up @@ -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>

0 comments on commit c7cc69a

Please sign in to comment.