Save bytes
This commit is contained in:
parent
48981e9acb
commit
c1c598db1e
|
@ -314,11 +314,7 @@ function ajaxSend(url, data, popState) {
|
||||||
var as = document.getElementById('menu').getElementsByTagName('a');
|
var as = document.getElementById('menu').getElementsByTagName('a');
|
||||||
var href = location.href.replace(/(&(sql=|dump=|(select|table)=[^&]*)).*/, '$1');
|
var href = location.href.replace(/(&(sql=|dump=|(select|table)=[^&]*)).*/, '$1');
|
||||||
for (var i=0; i < as.length; i++) {
|
for (var i=0; i < as.length; i++) {
|
||||||
if (href == as[i].href) {
|
as[i].className = (href == as[i].href ? 'active' : '');
|
||||||
as[i].className = 'active';
|
|
||||||
} else if (as[i].className == 'active') {
|
|
||||||
as[i].className = '';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
var dump = document.getElementById('dump');
|
var dump = document.getElementById('dump');
|
||||||
if (dump) {
|
if (dump) {
|
||||||
|
|
Loading…
Reference in a new issue