replace hardcoded css style with css class - ref owncloud/core#173
This commit is contained in:
parent
a1a6ef9409
commit
8871629db5
|
@ -97,3 +97,7 @@
|
|||
overflow-y:auto;
|
||||
overflow-x:hidden;
|
||||
}
|
||||
|
||||
.ui-menu-item a.ocGroup {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
|
@ -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>" )
|
||||
|
|
Loading…
Reference in New Issue