From: Morris Jobke Date: Thu, 21 Mar 2013 22:19:59 +0000 (+0100) Subject: replace hardcoded css style with css class - ref owncloud/core#173 X-Git-Tag: v6.0.0alpha2~982^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8871629db577395e1f9d018ba1b62b5be8114620;p=nextcloud-server.git replace hardcoded css style with css class - ref owncloud/core#173 --- 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 $( "
  • " )