mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 00:16:15 -04:00
Highlight button for currently opened dialog
This commit is contained in:
parent
8d7ec7d24a
commit
2adda472fc
2 changed files with 12 additions and 1 deletions
|
@ -1290,3 +1290,11 @@ label {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.selected {
|
||||||
|
background: #eee;
|
||||||
|
background: -webkit-linear-gradient(#EEE, #F0F0F0);
|
||||||
|
background: -moz-linear-gradient(#EEE, #F0F0F0);
|
||||||
|
background: -ms-linear-gradient(#EEE, #F0F0F0);
|
||||||
|
background: -o-linear-gradient(#EEE, #F0F0F0);
|
||||||
|
}
|
||||||
|
|
|
@ -168,11 +168,12 @@ var padeditbar = (function()
|
||||||
},
|
},
|
||||||
toogleDropDown: function(moduleName)
|
toogleDropDown: function(moduleName)
|
||||||
{
|
{
|
||||||
var modules = ["embed", "users", "readonly", "importexport", "settingsmenu"];
|
var modules = ["settingsmenu", "importexport", "embed", "users"];
|
||||||
|
|
||||||
//hide all modules
|
//hide all modules
|
||||||
if(moduleName == "none")
|
if(moduleName == "none")
|
||||||
{
|
{
|
||||||
|
$("#editbar ul#menu_right > li").removeClass("selected");
|
||||||
for(var i=0;i<modules.length;i++)
|
for(var i=0;i<modules.length;i++)
|
||||||
{
|
{
|
||||||
//skip the userlist
|
//skip the userlist
|
||||||
|
@ -189,6 +190,8 @@ var padeditbar = (function()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$("#editbar ul#menu_right li:not(:nth-child(" + (modules.indexOf(moduleName) + 1) + "))").removeClass("selected");
|
||||||
|
$("#editbar ul#menu_right li:nth-child(" + (modules.indexOf(moduleName) + 1) + ")").toggleClass("selected");
|
||||||
//hide all modules that are not selected and show the selected one
|
//hide all modules that are not selected and show the selected one
|
||||||
for(var i=0;i<modules.length;i++)
|
for(var i=0;i<modules.length;i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue