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

Commit

Permalink
Remove first system
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkIsDude committed Sep 6, 2017
1 parent fc5b26c commit 5dfabd4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion src/bootstrap/choices.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ng-show="$select.open && $select.items.length > 0">
<li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}" >
<div class="divider" ng-show="$select.isGrouped && $index > 0"></div>
<div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name" ng-click="$select.headerClick($group)"></div>
<div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"></div>
<div ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row"
ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}" role="option">
<span class="ui-select-choices-row-inner"></span>
Expand Down
9 changes: 0 additions & 9 deletions src/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -253,15 +253,6 @@ body > .ui-select-bootstrap.open {
border-right: 1px solid #428bca;
}

.ui-select-bootstrap .ui-select-choices-group-label.dropdown-header:hover {
background-color: #f5f5f5;
}

.ui-select-bootstrap .ui-select-choices-group-label.dropdown-header {
color: black;
cursor: pointer;
}

.ui-select-bootstrap .ui-select-choices-row>span {
cursor: pointer;
display: block;
Expand Down
13 changes: 0 additions & 13 deletions src/uiSelectController.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,6 @@ uis.controller('uiSelectCtrl',
throw uiSelectMinErr('searchInput', "Expected 1 input.ui-select-search but got '{0}'.", ctrl.searchInput.length);
}

ctrl.headerClick = function(g) {
function sendItem(item) {
$timeout(function() {
ctrl.select(item, false, ' ');
});
}

var items = g.items;
for(var i = 0; i < items.length; i++) {
sendItem(items[i]);
}
};

ctrl.isEmpty = function() {
return isNil(ctrl.selected) || ctrl.selected === '' || (ctrl.multiple && ctrl.selected.length === 0);
};
Expand Down

0 comments on commit 5dfabd4

Please sign in to comment.