mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +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); });
|
$("[name=" + controller.attr("name") + "]").click(function () { $("[name=" + $(this).attr("name") + "]").each($(this).toggleWhatYouControl); });
|
||||||
}
|
}
|
||||||
else if (controller.is("option")) {
|
else if (controller.is("option")) {
|
||||||
controller.parent().change(function () {
|
controller.parent().change(function() {
|
||||||
controller.toggleWhatYouControl();
|
controller.toggleWhatYouControl();
|
||||||
}).each($(this).toggleWhatYouControl);
|
});
|
||||||
|
controller.each($(this).toggleWhatYouControl);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user