Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit be71a47

Browse files
committed
chore(refactor): split code into multiple directives
1 parent 55ae88b commit be71a47

9 files changed

+664
-666
lines changed

src/bootstrap/match-multiple.tpl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
ng-click="$select.activeMatchIndex = $index;"
99
ng-class="{'btn-primary':$select.activeMatchIndex === $index, 'select-locked':$select.isLocked(this, $index)}"
1010
ui-select-sort="$select.selected">
11-
<span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$select.removeChoice($index)">&nbsp;&times;</span>
11+
<span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&nbsp;&times;</span>
1212
<span uis-transclude-append></span>
1313
</span>
1414
</span>

src/common.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ body > .select2-container {
100100
border-bottom-right-radius: 0;
101101
}
102102

103-
.ui-select-bootstrap > .ui-select-match {
103+
.ui-select-bootstrap > .ui-select-match > .btn{
104104
/* Instead of center because of .btn */
105-
text-align: left;
105+
text-align: left !important;
106106
}
107107

108108
.ui-select-bootstrap > .ui-select-match > .caret {

src/select2/match-multiple.tpl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
ng-class="{'select2-search-choice-focus':$select.activeMatchIndex === $index, 'select2-locked':$select.isLocked(this, $index)}"
99
ui-select-sort="$select.selected">
1010
<span uis-transclude-append></span>
11-
<a href="javascript:;" class="ui-select-match-close select2-search-choice-close" ng-click="$select.removeChoice($index)" tabindex="-1"></a>
11+
<a href="javascript:;" class="ui-select-match-close select2-search-choice-close" ng-click="$selectMultiple.removeChoice($index)" tabindex="-1"></a>
1212
</li>
1313
</span>

src/uiSelectChoicesDirective.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
uis.directive('uiSelectChoices',
2-
['uiSelectConfig', 'RepeatParser', 'uiSelectMinErr', '$compile',
2+
['uiSelectConfig', 'uisRepeatParser', 'uiSelectMinErr', '$compile',
33
function(uiSelectConfig, RepeatParser, uiSelectMinErr, $compile) {
44

55
return {

0 commit comments

Comments
 (0)