Skip to content

Commit

Permalink
change double quotes to single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed May 27, 2015
1 parent 5dc9bc7 commit 9e7dcff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@
tokens = $this.data('tokens') ? $this.data('tokens') : null,
subtext = typeof $this.data('subtext') !== 'undefined' ? '<small class="text-muted">' + $this.data('subtext') + '</small>' : '',
icon = typeof $this.data('icon') !== 'undefined' ? '<span class="' + that.options.iconBase + ' ' + $this.data('icon') + '"></span> ' : '',
isDisabled = this.disabled || this.parentElement.tagName === "OPTGROUP" && this.parentElement.disabled;
isDisabled = this.disabled || this.parentElement.tagName === 'OPTGROUP' && this.parentElement.disabled;

if (icon !== '' && isDisabled) {
icon = '<span>' + icon + '</span>';
Expand All @@ -508,7 +508,7 @@
text = icon + '<span class="text">' + text + subtext + '</span>';
}

if (this.parentElement.tagName === "OPTGROUP" && $this.data('divider') !== true) {
if (this.parentElement.tagName === 'OPTGROUP' && $this.data('divider') !== true) {
if ($this.index() === 0) { // Is it the first option of the optgroup?
optID += 1;

Expand All @@ -533,7 +533,7 @@
} else if ($this.data('hidden') === true) {
_li.push(generateLI(generateA(text, optionClass, inline, tokens), index, 'hidden is-hidden'));
} else {
if (this.previousElementSibling && this.previousElementSibling.tagName === "OPTGROUP") {
if (this.previousElementSibling && this.previousElementSibling.tagName === 'OPTGROUP') {
liIndex++;
_li.push(generateLI('', null, 'divider', optID + 'div'));
}
Expand Down Expand Up @@ -568,7 +568,7 @@
this.$element.find('option').each(function (index) {
var $lis = that.findLis().eq(that.liObj[index]);

that.setDisabled(index, this.disabled || this.parentElement.tagName === "OPTGROUP" && this.parentElement.disabled, $lis);
that.setDisabled(index, this.disabled || this.parentElement.tagName === 'OPTGROUP' && this.parentElement.disabled, $lis);
that.setSelected(index, this.selected, $lis);
});
}
Expand All @@ -577,7 +577,7 @@

var selectedItems = this.$element.find('option').map(function () {
if (this.selected) {
if (that.options.hideDisabled && (this.disabled || this.parentElement.tagName === "OPTGROUP" && this.parentElement.disabled)) return false;
if (that.options.hideDisabled && (this.disabled || this.parentElement.tagName === 'OPTGROUP' && this.parentElement.disabled)) return false;

var $this = $(this),
icon = $this.data('icon') && that.options.showIcon ? '<i class="' + that.options.iconBase + ' ' + $this.data('icon') + '"></i> ' : '',
Expand Down

0 comments on commit 9e7dcff

Please sign in to comment.