From 2adda472fcbff24a804d5b1ef92997acd518f0ca Mon Sep 17 00:00:00 2001 From: Robin Date: Fri, 3 Feb 2012 20:43:09 +0100 Subject: [PATCH] Highlight button for currently opened dialog --- static/css/pad.css | 8 ++++++++ static/js/pad_editbar.js | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/static/css/pad.css b/static/css/pad.css index be9d96565..6a5ff9026 100644 --- a/static/css/pad.css +++ b/static/css/pad.css @@ -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); +} diff --git a/static/js/pad_editbar.js b/static/js/pad_editbar.js index e6ff9adf7..71053d0c6 100644 --- a/static/js/pad_editbar.js +++ b/static/js/pad_editbar.js @@ -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