Use select2 styles from Nextcloud server

This commit is contained in:
Julius Haertl
2017-02-06 22:49:43 +01:00
parent 198e443a24
commit d74b9f68d9
3 changed files with 81 additions and 13 deletions

View File

@@ -30,14 +30,13 @@
</div>
<div id="labels">
<ui-select multiple tagging="" ng-model="card.labels" theme="bootstrap"
<ui-select multiple tagging="" ng-model="card.labels" theme="select2"
style="width:100%;" title="Choose a label"
placeholder="Add a label"
on-select="labelAssign($item, $model)"
on-remove="labelRemove($item, $model)" ng-disabled="!boardservice.canEdit() || archived">
<ui-select-match placeholder="Select labels..."><span
class="select-label"
style="background-color:#{{$item.color}}; color:{{ $item.color|textColorFilter }};">{{$item.title}}&nbsp;</span>
<ui-select-match placeholder="Select labels...">
<span class="select-label" style="background-color:#{{$item.color}}; color:{{ $item.color|textColorFilter }};">{{$item.title}}&nbsp;</span>
</ui-select-match>
<ui-select-choices
repeat="label in boardservice.getCurrent().labels | filter:$select.search">