Skip to content

Commit

Permalink
Code formatting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Jul 25, 2017
1 parent 4883b3e commit 47920fb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/dependent-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@
selected = $h.isEmpty(data.selected) ? (self.initVal === false ? null : self.initVal) : data.selected;
if ($h.isEmpty(data)) {
self.createOption($el, '', vNullMsg, '');
}
else {
} else {
self.renderSelect(data.output, vDefault, selected, $el);
if ($el.find('optgroup').length > 0) {
$el.find('option[value=""]').attr('disabled', 'disabled');
Expand Down Expand Up @@ -211,8 +210,7 @@
if (groups[idParam]) {
options = groups[self.optionsParam] || {};
self.createOption($select, groups[idParam], groups[nameParam], defVal, options);
}
else {
} else {
var $group = $('<optgroup>', {label: i});
$.each(groups, function (j, option) {
options = option[self.optionsParam] || {};
Expand Down

0 comments on commit 47920fb

Please sign in to comment.