Highlight button for currently opened dialog
parent
8d7ec7d24a
commit
2adda472fc
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue