mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
Fix active button ui
This commit is contained in:
parent
d25d81b9e2
commit
12c1d3b05a
5 changed files with 17 additions and 25 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue