Highlight button for currently opened dialog

pull/396/head
Robin 2012-02-03 20:43:09 +01:00
parent 8d7ec7d24a
commit 2adda472fc
2 changed files with 12 additions and 1 deletions

View File

@ -1290,3 +1290,11 @@ label {
font-size: 11px;
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);
}

View File

@ -168,11 +168,12 @@ var padeditbar = (function()
},
toogleDropDown: function(moduleName)
{
var modules = ["embed", "users", "readonly", "importexport", "settingsmenu"];
var modules = ["settingsmenu", "importexport", "embed", "users"];
//hide all modules
if(moduleName == "none")
{
$("#editbar ul#menu_right > li").removeClass("selected");
for(var i=0;i<modules.length;i++)
{
//skip the userlist
@ -189,6 +190,8 @@ var padeditbar = (function()
}
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
for(var i=0;i<modules.length;i++)
{