Skip to content

Commit

Permalink
Data updated
Browse files Browse the repository at this point in the history
  • Loading branch information
vatz88 committed Dec 26, 2016
1 parent f9e1ee6 commit 9993cf3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion appcache.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CACHE MANIFEST
# 2016-12-26
# v2
# v3

css/style.css
js/script.js
Expand Down
2 changes: 1 addition & 1 deletion data/all_data.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion data/unique_courses.js

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions js/autocomplete_course.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function getSlots(searchCode) {
var courseCodeOption = {
data: unique_courses,

getValue: "code",
getValue: "CODE",

list: {
match: {
Expand All @@ -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);
}
Expand All @@ -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"
};
Expand Down

0 comments on commit 9993cf3

Please sign in to comment.