Fixed controller for SELECT input controls.

When using a SELECT input control, that control itself would be initialized with the call to "toggleWhatYouControl" instead of its child OPTION elements.
This commit is contained in:
Sipke Schoorstra
2015-04-27 08:36:38 +02:00
parent 363ae13ef7
commit ae17c75a5e

View File

@@ -178,9 +178,10 @@
$("[name=" + controller.attr("name") + "]").click(function () { $("[name=" + $(this).attr("name") + "]").each($(this).toggleWhatYouControl); });
}
else if (controller.is("option")) {
controller.parent().change(function () {
controller.parent().change(function() {
controller.toggleWhatYouControl();
}).each($(this).toggleWhatYouControl);
});
controller.each($(this).toggleWhatYouControl);
}
});
});