mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 09:34:10 +02:00
AJAX: fix active link
This commit is contained in:
@@ -250,8 +250,9 @@ function ajaxSend(url, data) {
|
||||
}
|
||||
|
||||
var as = document.getElementById('menu').getElementsByTagName('a');
|
||||
var href = location.href.replace(/(&(sql=|dump=|(select|table)=[^&]*)).*/, '$1');
|
||||
for (var i=0; i < as.length; i++) {
|
||||
if (location.href == as[i].href) {
|
||||
if (href == as[i].href) {
|
||||
as[i].className = 'active';
|
||||
} else if (as[i].className == 'active') {
|
||||
as[i].className = '';
|
||||
|
Reference in New Issue
Block a user