Private GIT

Skip to content
Snippets Groups Projects
Commit 7164ace2 authored by Alexis Tyler's avatar Alexis Tyler
Browse files

Added warning to meta.js

parent acff7b25
No related branches found
No related tags found
No related merge requests found
function metaToBool(pyVar){
var meta = $('meta[data-var="' + pyVar + '"]').data('content');
if(meta === undefined){
console.log(pyVar + ' is empty, did you forget to add this to main.mako?');
return meta;
} else {
meta = (isNaN(meta) ? meta.toLowerCase() : meta.toString());
return !(meta === 'false' || meta === 'none' || meta === '0');
}
}
function getMeta(pyVar){
return $('meta[data-var="' + pyVar + '"]').data('content');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment