]> git.joonet.de Git - adminer.git/commitdiff
Fix active class
authorJakub Vrana <jakub@vrana.cz>
Fri, 26 Nov 2010 12:06:07 +0000 (13:06 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 26 Nov 2010 12:06:07 +0000 (13:06 +0100)
adminer/static/functions.js

index a7f2073f4d7c9edd271c335856c09947f5b6c8dc..a2540010b3cfa4441fda752b8cdf2993cd89f5ac 100644 (file)
@@ -251,13 +251,13 @@ function ajaxSend(url, data) {
                        
                        var as = document.getElementById('menu').getElementsByTagName('a');
                        for (var i=0; i < as.length; i++) {
-                               if (as[i].className == 'active') {
-                                       as[i].className = '';
-                               } else if (location.href == as[i].href) {
+                               if (location.href == as[i].href) {
                                        as[i].className = 'active';
+                               } else if (as[i].className == 'active') {
+                                       as[i].className = '';
                                }
                        }
-                       //! modify Export link
+                       //! modify Export link and Change database hidden fields
                        
                        if (window.jush) {
                                jush.highlight_tag('code', 0);