Fixed clicking and css issues
This commit is contained in:
parent
3fd993db98
commit
7680fc1bac
@ -674,7 +674,13 @@ input, textarea {
|
|||||||
#calCreWork {
|
#calCreWork {
|
||||||
margin-left: 0 !important;
|
margin-left: 0 !important;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
display: inline-block;
|
display: none;
|
||||||
|
opacity: 0;
|
||||||
|
|
||||||
|
-webkit-transition: opacity 0.4s ease;
|
||||||
|
-moz-transition: opacity 0.4s ease;
|
||||||
|
-ms-transition: opacity 0.4s ease;
|
||||||
|
transition: opacity 0.4s ease;
|
||||||
|
|
||||||
-webkit-animation: neonglow 1.5s ease-in-out infinite alternate;
|
-webkit-animation: neonglow 1.5s ease-in-out infinite alternate;
|
||||||
-moz-animation: neonglow 1.5s ease-in-out infinite alternate;
|
-moz-animation: neonglow 1.5s ease-in-out infinite alternate;
|
||||||
|
|||||||
@ -33,8 +33,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="classListHolder">
|
<div id="classListHolder">
|
||||||
{{#if myClasses}}
|
{{#if myClasses}}
|
||||||
|
<h3>Enrolled</h3><h3 id="calCreWork">-- Pick a class{{calCreWork}}</h3>
|
||||||
<h3>Enrolled</h3><h3 id="calCreWork">{{calCreWork}}</h3>
|
|
||||||
{{#each myClasses}}
|
{{#each myClasses}}
|
||||||
{{> sidebarClasses}}
|
{{> sidebarClasses}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|||||||
@ -31,9 +31,13 @@ var workColors = {
|
|||||||
"other": "#852E6D"
|
"other": "#852E6D"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Preference settings.
|
||||||
|
Session.set("mode", null);
|
||||||
|
Session.set("timeHide",null);
|
||||||
|
|
||||||
|
// Reactive variables.
|
||||||
Session.set("calendarclasses", null);
|
Session.set("calendarclasses", null);
|
||||||
Session.set("sidebar", null);
|
Session.set("sidebar", null);
|
||||||
Session.set("mode", null); // Change to user preferences
|
|
||||||
Session.set("newWork",null);
|
Session.set("newWork",null);
|
||||||
Session.set("currentWork",null);
|
Session.set("currentWork",null);
|
||||||
Session.set("currentReadableWork",null);
|
Session.set("currentReadableWork",null);
|
||||||
@ -89,6 +93,7 @@ Template.registerHelper('myClasses', () => {
|
|||||||
}
|
}
|
||||||
Session.set("noclass",false);
|
Session.set("noclass",false);
|
||||||
Session.set("calendarclasses", Meteor.user().profile.classes);
|
Session.set("calendarclasses", Meteor.user().profile.classes);
|
||||||
|
var hide = Session.get("timeHide");
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -194,7 +199,6 @@ Template.main.helpers({
|
|||||||
openDivFade(document.getElementsByClassName("overlay")[0]);
|
openDivFade(document.getElementsByClassName("overlay")[0]);
|
||||||
},
|
},
|
||||||
dayClick: function(date, jsEvent, view) {
|
dayClick: function(date, jsEvent, view) {
|
||||||
if(Session.get("sidebar") !== null) return;
|
|
||||||
if(jsEvent.target.className.includes("fc-other-month") || jsEvent.target.className.includes("fc-past")) return;
|
if(jsEvent.target.className.includes("fc-other-month") || jsEvent.target.className.includes("fc-past")) return;
|
||||||
Session.set("calCreWork",true);
|
Session.set("calCreWork",true);
|
||||||
Session.set("calWorkDate",date.format());
|
Session.set("calWorkDate",date.format());
|
||||||
@ -213,9 +217,18 @@ Template.main.helpers({
|
|||||||
},
|
},
|
||||||
calCreWork() {
|
calCreWork() {
|
||||||
if(Session.get("calCreWork")) {
|
if(Session.get("calCreWork")) {
|
||||||
return " -- Pick a Class";
|
var div = document.getElementById("calCreWork");
|
||||||
|
div.style.setProperty("display","inline-block","important");
|
||||||
|
div.style.setProperty("opacity","0","important");
|
||||||
|
setTimeout(function() {
|
||||||
|
div.style.setProperty("opacity","1","important");
|
||||||
|
}, 100);
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
return "";
|
try {
|
||||||
|
closeDivFade(document.getElementById("calCreWork"));
|
||||||
|
} catch(err) {}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
workCenter() {
|
workCenter() {
|
||||||
@ -305,7 +318,8 @@ Template.main.events({
|
|||||||
!e.includes("fa-bars") &&
|
!e.includes("fa-bars") &&
|
||||||
!document.getElementById("menuContainer").contains(event.target) &&
|
!document.getElementById("menuContainer").contains(event.target) &&
|
||||||
!document.getElementById("optionsContainer").contains(event.target) &&
|
!document.getElementById("optionsContainer").contains(event.target) &&
|
||||||
!event.target.className.includes("fc-day")) {
|
!(event.target.className.includes("fc-today") ||
|
||||||
|
(event.target.className.includes("fc-future") && !event.target.className.includes("fc-other-month")))) {
|
||||||
if(Session.get("calCreWork")) {
|
if(Session.get("calCreWork")) {
|
||||||
Session.set("calCreWork",false);
|
Session.set("calCreWork",false);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user