From 8871629db577395e1f9d018ba1b62b5be8114620 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 21 Mar 2013 23:19:59 +0100 Subject: [PATCH] replace hardcoded css style with css class - ref owncloud/core#173 --- core/css/share.css | 4 ++++ core/js/share.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/css/share.css b/core/css/share.css index 2d6849b4bb1..c97f27c2816 100644 --- a/core/css/share.css +++ b/core/css/share.css @@ -97,3 +97,7 @@ overflow-y:auto; overflow-x:hidden; } + +.ui-menu-item a.ocGroup { + font-weight: bold; +} diff --git a/core/js/share.js b/core/js/share.js index 36b5f6bdd7a..ca9c8f04eae 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -241,7 +241,8 @@ OC.Share={ var insert = ''; if(item.label.length > 8 && item.label.substr(item.label.length-8) === ' (group)') { // current label is group - insert = ' style="font-weight:bold;"'; + insert = ' class="ocGroup"'; // attribute to insert + // remove "(group)" item.label = item.label.substring(0, item.label.length-8) } return $( "
  • " ) -- 2.39.5