Commit d86f0307 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1686885: Site options, fix jquery on fields"

parents 9a8344b7 36abf4b9
......@@ -95,11 +95,11 @@ function pieform_element_expiry(Pieform $form, $element) {/*{{{*/
$script = <<<EOJS
<script type="application/javascript" language="javascript">
function {$name}_change() {
if ($('#{$formname}_{$name}_units').val() == 'noenddate') {
$('#{$formname}_{$name}').prop('disabled', true);
if (jQuery('#{$formname}_{$name}_units').val() == 'noenddate') {
jQuery('#{$formname}_{$name}').prop('disabled', true);
}
else {
$('#{$formname}_{$name}').prop('disabled', false);
jQuery('#{$formname}_{$name}').prop('disabled', false);
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment