From e32acf933d51f1024a7db3239309da7beafc6089 Mon Sep 17 00:00:00 2001 From: kondou Date: Wed, 26 Feb 2014 04:03:41 +0100 Subject: [PATCH 1/2] Highlight the selected app in app-settings --- settings/css/settings.css | 2 +- settings/js/apps.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index 8a96885b78..b8a8941a35 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -61,7 +61,7 @@ td.remove { width:1em; padding-right:1em; } tr:hover>td.password>span, tr:hover>td.displayName>span { margin:0; cursor:pointer; } tr:hover>td.remove>a, tr:hover>td.password>img,tr:hover>td.displayName>img, tr:hover>td.quota>img { visibility:visible; cursor:pointer; } tr:hover>td.remove>a { float:right; } -li.selected { background-color:#ddd; } +li.selected, #leftcontent li.selected { background-color:#ddd; } table.grid { width:100%; } #rightcontent { padding-left: 10px; } div.quota { diff --git a/settings/js/apps.js b/settings/js/apps.js index 2c6f77d931..7c71453e10 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -249,6 +249,8 @@ $(document).ready(function(){ var app = item.data('app'); OC.Settings.Apps.loadApp(app); } + $('#leftcontent .selected').removeClass('selected'); + item.addClass('selected'); return false; }); $('#rightcontent input.enable').click(function(){ From 1a561fced066e0d9103eb5dc72946e452beb2b83 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 26 Feb 2014 09:32:20 +0100 Subject: [PATCH 2/2] fix for coding style --- settings/css/settings.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index b8a8941a35..60abbc1086 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -61,7 +61,12 @@ td.remove { width:1em; padding-right:1em; } tr:hover>td.password>span, tr:hover>td.displayName>span { margin:0; cursor:pointer; } tr:hover>td.remove>a, tr:hover>td.password>img,tr:hover>td.displayName>img, tr:hover>td.quota>img { visibility:visible; cursor:pointer; } tr:hover>td.remove>a { float:right; } -li.selected, #leftcontent li.selected { background-color:#ddd; } + +li.selected, +#leftcontent li.selected { + background-color: #ddd; +} + table.grid { width:100%; } #rightcontent { padding-left: 10px; } div.quota {