mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
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:
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user