Fixed profile display bugs
This commit is contained in:
parent
5b575922b3
commit
6f6fc5bddf
@ -5,6 +5,19 @@ Session.set("profClassTab",null);
|
|||||||
Session.set("modifying",null);
|
Session.set("modifying",null);
|
||||||
Session.set("radioDiv",null);
|
Session.set("radioDiv",null);
|
||||||
|
|
||||||
|
var themeColors = {
|
||||||
|
"light": {
|
||||||
|
"header":"#EBEBEB",
|
||||||
|
"sidebar":"#65839A",
|
||||||
|
"statusIcons":"#33ADFF",
|
||||||
|
"highlightText":"#FF1A1A",
|
||||||
|
"cards":"#FEFEFE"
|
||||||
|
},
|
||||||
|
"dark": {
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
Template.profile.helpers({
|
Template.profile.helpers({
|
||||||
classsettings: function() {
|
classsettings: function() {
|
||||||
return {
|
return {
|
||||||
@ -66,7 +79,7 @@ Template.profile.helpers({
|
|||||||
classes() {
|
classes() {
|
||||||
return classes.find( { status: { $eq: true }, privacy: { $eq: false }}, {sort: { subscribers: -1 }}).fetch();
|
return classes.find( { status: { $eq: true }, privacy: { $eq: false }}, {sort: { subscribers: -1 }}).fetch();
|
||||||
},
|
},
|
||||||
profClassTabColor(tab) {
|
profClassTabColor(status) {
|
||||||
if(status === Session.get("profClassTab")) {
|
if(status === Session.get("profClassTab")) {
|
||||||
return themeColors[Cookie.get("theme")].highlightText;
|
return themeColors[Cookie.get("theme")].highlightText;
|
||||||
} else {
|
} else {
|
||||||
@ -167,7 +180,7 @@ Template.profile.events({
|
|||||||
//var functionHolder = document.getElementById("functionHolder")
|
//var functionHolder = document.getElementById("functionHolder")
|
||||||
//closeDivFade(functionHolder);
|
//closeDivFade(functionHolder);
|
||||||
//setTimeout(function() {
|
//setTimeout(function() {
|
||||||
Session.set("function","addClass");
|
Session.set("profClassTab","addClass");
|
||||||
// openDivFade(functionHolder);
|
// openDivFade(functionHolder);
|
||||||
//},300);
|
//},300);
|
||||||
},
|
},
|
||||||
@ -175,7 +188,7 @@ Template.profile.events({
|
|||||||
//var functionHolder = document.getElementById("functionHolder")
|
//var functionHolder = document.getElementById("functionHolder")
|
||||||
//closeDivFade(functionHolder);
|
//closeDivFade(functionHolder);
|
||||||
//setTimeout(function() {
|
//setTimeout(function() {
|
||||||
Session.set("function","manClass");
|
Session.set("profClassTab","manClass");
|
||||||
// openDivFade(functionHolder);
|
// openDivFade(functionHolder);
|
||||||
//},300);
|
//},300);
|
||||||
},
|
},
|
||||||
@ -183,14 +196,10 @@ Template.profile.events({
|
|||||||
//var functionHolder = document.getElementById("functionHolder")
|
//var functionHolder = document.getElementById("functionHolder")
|
||||||
//closeDivFade(functionHolder);
|
//closeDivFade(functionHolder);
|
||||||
//setTimeout(function() {
|
//setTimeout(function() {
|
||||||
Session.set("function","creClass");
|
Session.set("profClassTab","creClass");
|
||||||
// openDivFade(functionHolder);
|
// openDivFade(functionHolder);
|
||||||
//},300);
|
//},300);
|
||||||
},
|
},
|
||||||
'click .profFunction' (event) {
|
|
||||||
var name = event.target.className.substring(13);
|
|
||||||
Session.set("profClassTab",name);
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
function openDivFade(div) {
|
function openDivFade(div) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user