Permalink
Browse files

Data updated

  • Loading branch information...
1 parent f9e1ee6 commit 9993cf3de8a316d6b93bf35f2dcb22f7e460218e @VaTz88 committed Dec 26, 2016
Showing with 13 additions and 12 deletions.
  1. +1 −1 appcache.manifest
  2. +1 −1 data/all_data.js
  3. +2 −1 data/unique_courses.js
  4. +9 −9 js/autocomplete_course.js
View
@@ -1,6 +1,6 @@
CACHE MANIFEST
# 2016-12-26
-# v2
+# v3
css/style.css
js/script.js
View
Oops, something went wrong.
Oops, something went wrong.
@@ -45,7 +45,7 @@ function getSlots(searchCode) {
var courseCodeOption = {
data: unique_courses,
- getValue: "code",
+ getValue: "CODE",
list: {
match: {
@@ -55,37 +55,37 @@ var courseCodeOption = {
maxNumberOfElements: 10,
onSelectItemEvent: function () {
- var title = $("#inputCourseCode").getSelectedItemData().title;
+ var title = $("#inputCourseCode").getSelectedItemData().TITLE;
$("#inputCourseTitle").val(title).trigger("change");
- var searchCode = $("#inputCourseCode").getSelectedItemData().code;
+ var searchCode = $("#inputCourseCode").getSelectedItemData().CODE;
getSlots(searchCode);
}
},
template: {
type: "description",
fields: {
- description: "title"
+ description: "TITLE"
}
},
- placeholder: "eg: ITE208",
+ placeholder: "eg: ITE1008",
theme: "round"
};
var courseTitleOption = {
data: unique_courses,
- getValue: "title",
+ getValue: "TITLE",
list: {
match: {
enabled: true
},
onSelectItemEvent: function () {
- var code = $("#inputCourseTitle").getSelectedItemData().code;
+ var code = $("#inputCourseTitle").getSelectedItemData().CODE;
$("#inputCourseCode").val(code).trigger("change");
getSlots(code);
}
@@ -94,11 +94,11 @@ var courseTitleOption = {
template: {
type: "description",
fields: {
- description: "code"
+ description: "CODE"
}
},
- placeholder: "eg: Computer Networks",
+ placeholder: "eg: Open Source programming",
theme: "round"
};

0 comments on commit 9993cf3

Please sign in to comment.