disable all filters, and renaming
This commit is contained in:
parent
7eebae2b9f
commit
bded6702cf
@ -727,13 +727,6 @@ input, textarea {
|
|||||||
#calCreWork {
|
#calCreWork {
|
||||||
margin-left: 0 !important;
|
margin-left: 0 !important;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
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;
|
||||||
@ -765,6 +758,22 @@ input, textarea {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#disableFilter {
|
||||||
|
font-size: 90%;
|
||||||
|
margin: 0 0 0 23% !important;
|
||||||
|
padding: 4%;
|
||||||
|
background-color: rgba(255,255,255,0.2);
|
||||||
|
|
||||||
|
-webkit-transition: background-color 0.4s ease;
|
||||||
|
-moz-transition: background-color 0.4s ease;
|
||||||
|
-ms-transition: background-color 0.4s ease;
|
||||||
|
transition: background-color 0.4s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
#disableFilter:hover {
|
||||||
|
background-color: rgba(255,255,255,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
.fc-day:not(.fc-past) {
|
.fc-day:not(.fc-past) {
|
||||||
box-shadow: inset 0 0 0 99999px rgba(0,0,0,0.1);
|
box-shadow: inset 0 0 0 99999px rgba(0,0,0,0.1);
|
||||||
|
|
||||||
|
|||||||
@ -35,7 +35,14 @@
|
|||||||
</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>
|
||||||
|
{{#if calCreWork}}
|
||||||
|
<h3 id="calCreWork">-- Pick a class</h3>
|
||||||
|
{{else}}
|
||||||
|
{{#if filterOn}}
|
||||||
|
<h3 id="disableFilter">Disable All</h3>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
{{#each myClasses}}
|
{{#each myClasses}}
|
||||||
{{> sidebarClasses}}
|
{{> sidebarClasses}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|||||||
@ -303,20 +303,12 @@ Template.main.helpers({
|
|||||||
return "width:" + width.toString() + "px;height:" + height.toString() + "px;margin-left:" + (0.5 * window.innerWidth - 0.5 * width).toString() + "px;margin-top:" + (0.47 * window.innerHeight - 0.5 * height).toString() + "px";
|
return "width:" + width.toString() + "px;height:" + height.toString() + "px;margin-left:" + (0.5 * window.innerWidth - 0.5 * width).toString() + "px;margin-top:" + (0.47 * window.innerHeight - 0.5 * height).toString() + "px";
|
||||||
},
|
},
|
||||||
calCreWork() { // Display instructions for creating a work.
|
calCreWork() { // Display instructions for creating a work.
|
||||||
if(Session.get("calCreWork")) {
|
if(Session.get("calCreWork")) return true;
|
||||||
var div = document.getElementById("calCreWork");
|
return false;
|
||||||
div.style.setProperty("display","inline-block","important");
|
},
|
||||||
div.style.setProperty("opacity","0","important");
|
filterOn() {
|
||||||
setTimeout(function() {
|
if(Session.get("classDisp").length !== 0) return true;
|
||||||
div.style.setProperty("opacity","1","important");
|
return false;
|
||||||
}, 100);
|
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
try {
|
|
||||||
closeDivFade(document.getElementById("calCreWork"));
|
|
||||||
} catch(err) {}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
highlight() { // Calendar highlight/scale option.
|
highlight() { // Calendar highlight/scale option.
|
||||||
var hoverHighlight = Session.get("classDispHover");
|
var hoverHighlight = Session.get("classDispHover");
|
||||||
@ -758,9 +750,11 @@ Template.main.events({
|
|||||||
array.push(classid);
|
array.push(classid);
|
||||||
}
|
}
|
||||||
Session.set("classDisp",array);
|
Session.set("classDisp",array);
|
||||||
$("#fullcalendar").fullCalendar( 'refetchEvents' ); // Update calendar events.
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
'click #disableFilter' () {
|
||||||
|
Session.set("classDisp",[]);
|
||||||
|
},
|
||||||
'mouseover .sideClass' (event) { // Highlight/scale filter on-hover.
|
'mouseover .sideClass' (event) { // Highlight/scale filter on-hover.
|
||||||
if(event.target.className !== "sideClass") {
|
if(event.target.className !== "sideClass") {
|
||||||
var div = event.target.parentNode;
|
var div = event.target.parentNode;
|
||||||
|
|||||||
@ -267,10 +267,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template name="schoollist">
|
<template name="schoolList">
|
||||||
{{name}}
|
{{name}}
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template name="teacherlist">
|
<template name="teacherList">
|
||||||
{{teacher}}
|
{{teacher}}
|
||||||
</template>
|
</template>
|
||||||
@ -42,7 +42,7 @@ Template.profile.helpers({
|
|||||||
collection: schools,
|
collection: schools,
|
||||||
field: 'name',
|
field: 'name',
|
||||||
matchAll: true,
|
matchAll: true,
|
||||||
template: Template.schoollist
|
template: Template.schoolList
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -54,7 +54,7 @@ Template.profile.helpers({
|
|||||||
token: '',
|
token: '',
|
||||||
collection: classes,
|
collection: classes,
|
||||||
field: 'teacher',
|
field: 'teacher',
|
||||||
template: Template.teacherlist
|
template: Template.teacherList
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user