diff options
author | 0ip <me@factor.cc> | 2014-10-03 17:35:48 +0200 |
---|---|---|
committer | 0ip <me@factor.cc> | 2014-10-03 17:35:48 +0200 |
commit | 12c1d3b05a7ed4b044a54fb842ae171885cdc920 (patch) | |
tree | 02a2007fc2f37ddcf75cc2de3fe73c99ba0a2475 /src/static/js | |
parent | d25d81b9e2bfca3fe80f2d1ceb5367c5244556f9 (diff) | |
download | etherpad-lite-12c1d3b05a7ed4b044a54fb842ae171885cdc920.zip |
Fix active button ui
Diffstat (limited to 'src/static/js')
-rw-r--r-- | src/static/js/pad_editbar.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/static/js/pad_editbar.js b/src/static/js/pad_editbar.js index 85963217..6352b129 100644 --- a/src/static/js/pad_editbar.js +++ b/src/static/js/pad_editbar.js @@ -206,7 +206,7 @@ var padeditbar = (function() if(module.css('display') != "none") { - $("#" + self.dropdowns[i] + "link").removeClass("selected"); + $("li[data-key=" + self.dropdowns[i] + "] > a").removeClass("selected"); module.slideUp("fast", cb); returned = true; } @@ -223,12 +223,12 @@ var padeditbar = (function() if(module.css('display') != "none") { - $("#" + self.dropdowns[i] + "link").removeClass("selected"); + $("li[data-key=" + self.dropdowns[i] + "] > a").removeClass("selected"); module.slideUp("fast"); } else if(self.dropdowns[i]==moduleName) { - $("#" + self.dropdowns[i] + "link").addClass("selected"); + $("li[data-key=" + self.dropdowns[i] + "] > a").addClass("selected"); module.slideDown("fast", cb); } } @@ -271,7 +271,7 @@ var padeditbar = (function() toolbar.registerDropdownCommand("showusers", "users"); toolbar.registerDropdownCommand("settings"); toolbar.registerDropdownCommand("connectivity"); - toolbar.registerDropdownCommand("import_export", "importexport"); + toolbar.registerDropdownCommand("import_export"); toolbar.registerDropdownCommand("embed"); toolbar.registerCommand("embed", function () { |