diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-03-21 23:19:59 +0100 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-03-21 23:19:59 +0100 |
commit | 8871629db577395e1f9d018ba1b62b5be8114620 (patch) | |
tree | 74f4fa6130f1a144f514d29e635cfc6ca0e02003 /core | |
parent | a1a6ef940906b93364e682621f095bfbc10ff041 (diff) | |
download | nextcloud-server-8871629db577395e1f9d018ba1b62b5be8114620.tar.gz nextcloud-server-8871629db577395e1f9d018ba1b62b5be8114620.zip |
replace hardcoded css style with css class - ref owncloud/core#173
Diffstat (limited to 'core')
-rw-r--r-- | core/css/share.css | 4 | ||||
-rw-r--r-- | core/js/share.js | 3 |
2 files changed, 6 insertions, 1 deletions
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 $( "<li>" ) |