Commit 36abf4b9 authored by Pramith Dayananda's avatar Pramith Dayananda

Bug 1686885: Site options, fix jquery on fields

Site options > Logging Settings > Event log expiry
Site options > Account Settings > Def reg expiry
Site options > Account Settings > Def acc lifetime
Site options > Account Settings > Def acc inactive time
Site options > Account Settings > Warn time for inactive

behatnotneeded

Change-Id: Ia4596cc6da1842ddedf170d2f707412323dda0c9
parent 92d2ce38
......@@ -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