summaryrefslogtreecommitdiff
path: root/js/textbook_companion.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/textbook_companion.js')
-rwxr-xr-xjs/textbook_companion.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/textbook_companion.js b/js/textbook_companion.js
index 070e960..ff9dd6e 100755
--- a/js/textbook_companion.js
+++ b/js/textbook_companion.js
@@ -124,6 +124,24 @@ $('#edit-version').change(function() {
});
+/* hide nonaicte_proposal form textbox of other reason */
+$('#edit-other-reason-wrapper').hide();
+$(function() {
+ enable_cb();
+ $("#edit-reason-4").click(enable_cb);
+});
+
+function enable_cb() {
+ if (this.checked) {
+ $('#edit-other-reason-wrapper').show();
+ } else {
+ $('#edit-other-reason-wrapper').hide();
+ }
+}
+
+
+
+
/* highlighting current filter [A-Z] of book search pages */
var pathname = window.location.pathname;
var filter = pathname.charAt(pathname.length-1);