This commit is contained in:
Andrew Bauer 2020-12-01 12:19:01 -06:00
parent b0da7f5920
commit 051e361958
1 changed files with 5 additions and 5 deletions

View File

@ -1065,11 +1065,11 @@ function manageDelConfirmModalBtns() {
} }
function getEvtStatsCookie() { function getEvtStatsCookie() {
var cookie = 'zmEventStats' var cookie = 'zmEventStats';
var stats = getCookie(cookie); var stats = getCookie(cookie);
if ( !stats ) { if ( !stats ) {
stats = 'on' stats = 'on';
setCookie(cookie, stats, 10*365); setCookie(cookie, stats, 10*365);
} }
return stats; return stats;
@ -1080,7 +1080,7 @@ function initPage() {
getDelConfirmModal(); getDelConfirmModal();
var stats = getEvtStatsCookie(); var stats = getEvtStatsCookie();
if ( stats != 'on' ) table.toggle(false) if ( stats != 'on' ) table.toggle(false);
//FIXME prevent blocking...not sure what is happening or best way to unblock //FIXME prevent blocking...not sure what is happening or best way to unblock
if ( $j('#videoobj').length ) { if ( $j('#videoobj').length ) {
@ -1239,7 +1239,7 @@ function initPage() {
// Manage the Event STATISTICS Button // Manage the Event STATISTICS Button
document.getElementById("statsBtn").addEventListener("click", function onStatsClick(evt) { document.getElementById("statsBtn").addEventListener("click", function onStatsClick(evt) {
evt.preventDefault(); evt.preventDefault();
var cookie = 'zmEventStats' var cookie = 'zmEventStats';
// Toggle the visiblity of the stats table and write an appropriate cookie // Toggle the visiblity of the stats table and write an appropriate cookie
if ( table.is(':visible') ) { if ( table.is(':visible') ) {
@ -1247,7 +1247,7 @@ function initPage() {
table.toggle(false); table.toggle(false);
} else { } else {
setCookie(cookie, 'on', 10*365); setCookie(cookie, 'on', 10*365);
table.toggle(true); table.toggle(true);
} }
}); });