replace hardcoded css style with css class - ref owncloud/core#173

This commit is contained in:
Morris Jobke 2013-03-21 23:19:59 +01:00
parent a1a6ef9409
commit 8871629db5
2 changed files with 6 additions and 1 deletions

View File

@ -97,3 +97,7 @@
overflow-y:auto;
overflow-x:hidden;
}
.ui-menu-item a.ocGroup {
font-weight: bold;
}

View File

@ -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>" )