Merge pull request #396 from 0ip/ui_dialog_hl
Mark UI button of currently 'open' dialog
This commit is contained in:
commit
894ff56611
|
@ -1289,3 +1289,11 @@ label {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.selected {
|
||||||
|
background: #eee !important;
|
||||||
|
background: -webkit-linear-gradient(#EEE, #F0F0F0) !important;
|
||||||
|
background: -moz-linear-gradient(#EEE, #F0F0F0) !important;
|
||||||
|
background: -ms-linear-gradient(#EEE, #F0F0F0) !important;
|
||||||
|
background: -o-linear-gradient(#EEE, #F0F0F0) !important;
|
||||||
|
}
|
||||||
|
|
|
@ -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,11 @@ var padeditbar = (function()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
var nth_child = modules.indexOf(moduleName) + 1;
|
||||||
|
if (nth_child > 0 && nth_child <= 3) {
|
||||||
|
$("#editbar ul#menu_right li:not(:nth-child(" + nth_child + "))").removeClass("selected");
|
||||||
|
$("#editbar ul#menu_right li:nth-child(" + nth_child + ")").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…
Reference in New Issue