${conflict_message}>`
+ `
+ }
}
}
\ No newline at end of file
diff --git a/js/calendar.js b/js/calendar.js
index 3a48a71a..a7e92358 100644
--- a/js/calendar.js
+++ b/js/calendar.js
@@ -9,7 +9,7 @@ var {
var saved_courses = [];
var curr_course = {}
-$("#calendar").after(Template.calendarModal());
+$("#calendar").after(Template.Calendar.modal());
chrome.storage.sync.get("savedCourses", function (data) {
// Iterate through each saved course and add to 'event'
@@ -86,7 +86,7 @@ function buildTimeTitle(datetimearr) {
var output = "";
for (let i = 0; i < arr.length; i++) {
let line = arr[i];
- output += Template.calendarLine(line);
+ output += Template.Calendar.line(line);
}
$("#header").after(`
${output}
save course popup...
");
// now add to the table
$("table thead th:last-child").after('
Plus
');
$('table').find('tr').each(function () {
if (!($(this).find('td').hasClass("course_header")) && $(this).has('th').length == 0) {
- $(this).append(Template.extensionButton());
+ $(this).append(Template.Main.extension_button());
}
});
}
@@ -442,7 +442,7 @@ function loadNextPages() {
next_page.find('tbody>tr').each(function () {
let has_course_header = $(this).find('td').hasClass("course_header");
if (!(has_course_header && $(this).has('th').length == 0))
- $(this).append(Template.extensionButton());
+ $(this).append(Template.Main.extension_button());
if (!(has_course_header && last == $(this).find('td').text()))
new_rows.push($(this));
});
diff --git a/js/popup.js b/js/popup.js
index 7be9fa52..f2622c92 100644
--- a/js/popup.js
+++ b/js/popup.js
@@ -29,7 +29,7 @@ function setCourseList() {
number
} = seperateCourseNameParts(coursename)
- let list_html = Template.popupListItem(i, list_tile_color, unique, department, number, profname, list_sub_color, line);
+ let list_html = Template.Popup.list_item(i, list_tile_color, unique, department, number, profname, list_sub_color, line);
$("#courseList").append(list_html);
}
});
@@ -44,7 +44,7 @@ function buildTimeLines(datetimearr) {
} else {
for (let i = 0; i < lines.length; i++) {
let line = lines[i];
- output += Template.popupLine(line)
+ output += Template.Popup.line(line)
}
}
return output;
@@ -65,7 +65,7 @@ function updateConflicts() {
if (i != between.length - 1)
conflict_message += " ";
}
- $(Template.popupConflictMessage(conflict_message)).prependTo("#courseList").hide().fadeIn(200);
+ $(Template.Popup.conflict_message(conflict_message)).prependTo("#courseList").hide().fadeIn(200);
}
});
}
diff --git a/js/utplanner.js b/js/utplanner.js
index baf8a081..e0772b13 100644
--- a/js/utplanner.js
+++ b/js/utplanner.js
@@ -2,12 +2,12 @@ if ($('html').hasClass('gr__utexas_collegescheduler_com')) {
$.initialize("table.section-detail-grid", function () {
$(this).find('thead>tr').append('