summaryrefslogtreecommitdiff
path: root/static/website/js/custom.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/website/js/custom.js')
-rw-r--r--static/website/js/custom.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/static/website/js/custom.js b/static/website/js/custom.js
index 90ebe9c..5b584ee 100644
--- a/static/website/js/custom.js
+++ b/static/website/js/custom.js
@@ -1,5 +1,6 @@
$(document).ready(function() {
- $category = $("#id_category");
+ $("#id_category").val($category);
+
$tutorial = $("#id_tutorial");
$minute_range = $("#id_minute_range");
$second_range = $("#id_second_range");
@@ -55,7 +56,7 @@ $(document).ready(function() {
$tutorial.change(function() {
/* resetting dropdowns */
reset("minute_range", "second_range");
- var category = $category.val();
+
var tutorial = $(this).val();
if(tutorial == "General") {
/* disabling all other fields */