Skip to content
This repository was archived by the owner on Mar 4, 2019. It is now read-only.

Commit 9c156f4

Browse files
committed
The id of select items can also be string (fix #1)
1 parent 8118a2c commit 9c156f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ajax_chain_select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
dc = $(parent_fieldset).find('.form-type-textfield input.acs-dc').val();
3737
dch = $(parent_fieldset).find('.form-type-textfield input.acs-dch').val();
3838

39-
if (current_level_id === "" || isNaN(Number(current_level_id))) {
39+
if (current_level_id === "") {
4040
next_el.addClass('form-disabled').find('select').attr('disabled', 'disabled');
4141
if (next_el.find('select').find('option') !== undefined) {
4242
next_el.find('select').find('option:eq(0)').attr('selected', 'selected');

0 commit comments

Comments
 (0)