Fix #16999 - Add an Id and use it to toggle properly the search criteria area

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-07-08 15:11:07 +02:00
parent 65d262c170
commit fec707c3f9
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ AJAX.registerOnload('database/multi_table_query.js', function () {
});
});
$('#sql_results').html($resultsDom);
$('#page_content').find('a').first().trigger('click');
$('#slide-handle').trigger('click');// Collapse search criteria area
}
});
});

View File

@ -4268,7 +4268,7 @@ Functions.initSlider = function () {
}
var $wrapper = $('<div>', { 'class': 'slide-wrapper' });
$wrapper.toggle($this.is(':visible'));
$('<a>', { href: '#' + this.id, 'class': 'ajax' })
$('<a>', { href: '#' + this.id, 'class': 'ajax', id: 'slide-handle' })
.text($this.attr('title'))
.prepend($('<span>'))
.insertBefore($this)