fixed calendar bug
This commit is contained in:
@@ -232,6 +232,8 @@ $(function () {
|
|||||||
|
|
||||||
//create the event object for every section
|
//create the event object for every section
|
||||||
function setEventForSection(session, colorCounter, i) {
|
function setEventForSection(session, colorCounter, i) {
|
||||||
|
console.log(moment().startOf('month').format("YYYY-MM-D"));
|
||||||
|
console.log(moment().day(fullday));
|
||||||
var fullday = days.get(session[0]);
|
var fullday = days.get(session[0]);
|
||||||
var classInfo = savedCourses[i];
|
var classInfo = savedCourses[i];
|
||||||
var department = classInfo.coursename.substring(0, classInfo.coursename.search(/\d/) - 2);
|
var department = classInfo.coursename.substring(0, classInfo.coursename.search(/\d/) - 2);
|
||||||
@@ -242,7 +244,7 @@ $(function () {
|
|||||||
}
|
}
|
||||||
classSchedules.push({
|
classSchedules.push({
|
||||||
title: `${department}-${course_nbr} with ${uncapProf}`,
|
title: `${department}-${course_nbr} with ${uncapProf}`,
|
||||||
start: moment().startOf('week').format("YYYY-MM-") +
|
start: moment().startOf('month').format("YYYY-MM-") +
|
||||||
moment()
|
moment()
|
||||||
.day(fullday)
|
.day(fullday)
|
||||||
._d.toString()
|
._d.toString()
|
||||||
@@ -250,7 +252,7 @@ $(function () {
|
|||||||
"T" +
|
"T" +
|
||||||
session[1][0] +
|
session[1][0] +
|
||||||
":00",
|
":00",
|
||||||
end: moment().startOf('week').format("YYYY-MM-") +
|
end: moment().startOf('month').format("YYYY-MM-") +
|
||||||
moment()
|
moment()
|
||||||
.day(fullday)
|
.day(fullday)
|
||||||
._d.toString()
|
._d.toString()
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
|
|
||||||
"name": "UT Registration Plus",
|
"name": "UT Registration Plus",
|
||||||
"version": "0.2.2",
|
"version": "0.2.2.1",
|
||||||
"options_page": "options.html",
|
"options_page": "options.html",
|
||||||
"description": "Improves the course registration process at the University of Texas at Austin!",
|
"description": "Improves the course registration process at the University of Texas at Austin!",
|
||||||
"permissions": ["tabs",
|
"permissions": ["tabs",
|
||||||
|
|||||||
Reference in New Issue
Block a user