Skip to content

Commit 89db69d

Browse files
committed
Minor code style improvements based on marcj#119.
1 parent f8cca6d commit 89db69d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
$('#refresh').click(function() {
5454
$('SELECT OPTION').each(function() {
55-
$(this).text($(this).text().replace("Item", "Value"));
55+
$(this).text('Refreshed ' + $(this).val());
5656
});
5757
$('SELECT').selectBox('refresh');
5858
});

jquery.selectBox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@
425425
}
426426

427427
// Restore opened dropdown state (original menu was trashed)
428-
if (type == 'dropdown' && control.hasClass('selectBox-menuShowing')) {
428+
if ('dropdown' === type && control.hasClass('selectBox-menuShowing')) {
429429
this.showMenu();
430430
}
431431
};

0 commit comments

Comments
 (0)