Skip to content

Commit

Permalink
issue lordfriend#168 Fixed classnames for avoidance of collisions wit…
Browse files Browse the repository at this point in the history
…h bootstrap-select
  • Loading branch information
Ivan Antropov committed Aug 26, 2017
1 parent 7edde4a commit 7d3b7b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions less/nya-bs-select.less
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,12 @@
}
}

.bs-searchbox,
.bs-actionsbox {
.nya-bs-searchbox,
.nya-bs-actionsbox {
padding: 4px 8px;
}

.bs-actionsbox {
.nya-bs-actionsbox {
float: left;
width: 100%;
box-sizing: border-box;
Expand All @@ -265,8 +265,8 @@
}
}

.bs-searchbox {
& + .bs-actionsbox {
.nya-bs-searchbox {
& + .nya-bs-actionsbox {
padding: 0 8px 4px;
}

Expand Down
8 changes: 4 additions & 4 deletions src/nya-bs-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ nyaBsSelect.directive('nyaBsSelect', ['$parse', '$document', '$timeout', '$compi

var DROPDOWN_CONTAINER = '<div class="dropdown-menu open"></div>';

var SEARCH_BOX = '<div class="bs-searchbox">' +
var SEARCH_BOX = '<div class="nya-bs-searchbox">' +
'<input type="text" class="form-control">' +
'</div>';

var DROPDOWN_MENU = '<ul class="dropdown-menu inner"></ul>';

var NO_SEARCH_RESULT = '<li class="no-search-result"><span>NO SEARCH RESULT</span></li>';

var ACTIONS_BOX = '<div class="bs-actionsbox">' +
var ACTIONS_BOX = '<div class="nya-bs-actionsbox">' +
'<div class="btn-group btn-group-sm btn-block">' +
'<button type="button" class="actions-btn bs-select-all btn btn-default">SELECT ALL</button>' +
'<button type="button" class="actions-btn bs-deselect-all btn btn-default">DESELECT ALL</button>' +
Expand Down Expand Up @@ -184,9 +184,9 @@ nyaBsSelect.directive('nyaBsSelect', ['$parse', '$document', '$timeout', '$compi
var dropdownToggle = jqLite($element[0].querySelector('.dropdown-toggle')),
dropdownContainer = dropdownToggle.next(),
dropdownMenu = jqLite(dropdownContainer[0].querySelector('.dropdown-menu.inner')),
searchBox = jqLite(dropdownContainer[0].querySelector('.bs-searchbox')),
searchBox = jqLite(dropdownContainer[0].querySelector('.nya-bs-searchbox')),
noSearchResult = jqLite(dropdownMenu[0].querySelector('.no-search-result')),
actionsBox = jqLite(dropdownContainer[0].querySelector('.bs-actionsbox'));
actionsBox = jqLite(dropdownContainer[0].querySelector('.nya-bs-actionsbox'));

if(nyaBsSelectCtrl.valueExp) {
valueExpFn = function(scope, locals) {
Expand Down
2 changes: 1 addition & 1 deletion test/spec/live-search-feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe('features about live search related, etc;', function() {
inputElement.val('o');
inputElement.triggerHandler('input');

selectElement[0].querySelector('.bs-actionsbox .bs-select-all').click();
selectElement[0].querySelector('.nya-bs-actionsbox .bs-select-all').click();

$scope.$digest();

Expand Down

0 comments on commit 7d3b7b4

Please sign in to comment.