Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plugins bot
moodle-plugins-snapshots
Commits
e0e5407e
Commit
e0e5407e
authored
Jan 25, 2017
by
Andrew Nicols
Browse files
MDL-57550 mod_forum: Set dates to initial checkbox state
parent
190c79ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
mod/forum/templates/big_search_form.mustache
View file @
e0e5407e
...
...
@@ -161,12 +161,12 @@
$('#searchform input[name^=h' + prefix + ']').val(disabled ? 1 : 0);
};
toggleDateFields('from',
true
);
toggleDateFields('from',
!$("#searchform input[name='timefromrestrict']").prop('checked')
);
$("#searchform input[name='timefromrestrict']").click(function() {
toggleDateFields('from', !this.checked);
});
toggleDateFields('to',
true
);
toggleDateFields('to',
!$("#searchform input[name='timetorestrict']").prop('checked')
);
$("#searchform input[name='timetorestrict']").click(function() {
toggleDateFields('to', !this.checked);
});
...
...
theme/boost/templates/mod_forum/big_search_form.mustache
View file @
e0e5407e
...
...
@@ -160,12 +160,12 @@ require(['jquery'], function($) {
$('#searchform input[name^=h' + prefix + ']').val(disabled ? 1 : 0);
};
toggleDateFields('from',
true
);
toggleDateFields('from',
!$("#searchform input[name='timefromrestrict']").prop('checked')
);
$("#searchform input[name='timefromrestrict']").click(function() {
toggleDateFields('from', !this.checked);
});
toggleDateFields('to',
true
);
toggleDateFields('to',
!$("#searchform input[name='timetorestrict']").prop('checked')
);
$("#searchform input[name='timetorestrict']").click(function() {
toggleDateFields('to', !this.checked);
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment