bugfixes
This commit is contained in:
@@ -55,8 +55,6 @@ $(function () {
|
|||||||
$("#myModal").fadeIn(fadetime);
|
$("#myModal").fadeIn(fadetime);
|
||||||
$("#colorStrip").css('background-color', data.color);
|
$("#colorStrip").css('background-color', data.color);
|
||||||
currindex = data.index;
|
currindex = data.index;
|
||||||
var currLink = savedCourses[currindex].link;
|
|
||||||
var currunique = savedCourses[currindex].unique;
|
|
||||||
$("#classname").html(`${savedCourses[currindex].coursename} <span style='font-size:small'>(${savedCourses[currindex].unique})</span>`);
|
$("#classname").html(`${savedCourses[currindex].coursename} <span style='font-size:small'>(${savedCourses[currindex].unique})</span>`);
|
||||||
$("#timelines").append(makeLine(savedCourses[currindex].datetimearr));
|
$("#timelines").append(makeLine(savedCourses[currindex].datetimearr));
|
||||||
|
|
||||||
@@ -70,17 +68,18 @@ $(function () {
|
|||||||
if (status.includes("closed") || status.includes("cancelled")) {
|
if (status.includes("closed") || status.includes("cancelled")) {
|
||||||
$("#register").text("Class Closed").css("background-color", "#FF5722");
|
$("#register").text("Class Closed").css("background-color", "#FF5722");
|
||||||
} else {
|
} else {
|
||||||
$("#register").text("Register").css("background-color","#4CAF50").click(function () {
|
$("#register").text("Register").css("background-color", "#4CAF50");
|
||||||
let registerlink = savedCourses[currindex].registerlink;
|
}
|
||||||
setTimeout(() => {
|
}
|
||||||
window.open(registerlink);
|
|
||||||
}, butdelay);
|
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
// When the user clicks on <span> (x), close the modal
|
// When the user clicks on <span> (x), close the modal
|
||||||
$(".close").click(() => {
|
$(".close").click(() => {
|
||||||
$("#myModal").fadeOut(fadetime);
|
$("#myModal").fadeOut(fadetime);
|
||||||
});
|
});
|
||||||
$("#info").click(() => {
|
$("#info").click(() => {
|
||||||
|
var currLink = savedCourses[currindex].link;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.open(currLink);
|
window.open(currLink);
|
||||||
}, butdelay);
|
}, butdelay);
|
||||||
@@ -104,9 +103,14 @@ $(function () {
|
|||||||
});
|
});
|
||||||
}, butdelay);
|
}, butdelay);
|
||||||
});
|
});
|
||||||
|
$("#register").click(function () {
|
||||||
|
let registerlink = savedCourses[currindex].registerlink;
|
||||||
|
let status = savedCourses[currindex].status;
|
||||||
|
if (!(status.includes("closed") || status.includes("cancelled"))) {
|
||||||
|
setTimeout(() => {
|
||||||
|
window.open(registerlink);
|
||||||
|
}, butdelay);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/* convert from the dtarr and maek the time lines*/
|
/* convert from the dtarr and maek the time lines*/
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<span style="font-size: small;display:table;margin:0 auto;font-weight: bold">(No Courses Saved)</span>
|
<span style="font-size: small;display:table;margin:0 auto;font-weight: bold">(No Courses Saved)</span>
|
||||||
</h2>
|
</h2>
|
||||||
<div style=" margin-bottom: 0px; display:inline-block"></div>
|
<div style=" margin-bottom: 0px; display:inline-block"></div>
|
||||||
<button title='Options' class="settingsbut" id='open'>
|
<button title='Options' style="background-color:white;" class="settingsbut" id='open'>
|
||||||
<i style='color:#FF9800' class="material-icons">
|
<i style='color:#FF9800' class="material-icons">
|
||||||
settings
|
settings
|
||||||
</i></button>
|
</i></button>
|
||||||
|
|||||||
5
todo
5
todo
@@ -3,8 +3,13 @@ TODO as of 8/28/18
|
|||||||
FEATURES:
|
FEATURES:
|
||||||
|
|
||||||
- something to fill the space to the rght of the main popup window
|
- something to fill the space to the rght of the main popup window
|
||||||
|
- Location in popup extra info
|
||||||
|
- import into UT registration plus
|
||||||
|
- import calendar
|
||||||
|
|
||||||
BUGS TO FIX:
|
BUGS TO FIX:
|
||||||
|
- online classes no times in popup link
|
||||||
|
|
||||||
|
|
||||||
DONE/FIXED:
|
DONE/FIXED:
|
||||||
- unneeded Logout message on individual course pages
|
- unneeded Logout message on individual course pages
|
||||||
|
|||||||
Reference in New Issue
Block a user