diff --git a/module/todo/js/common.js b/module/todo/js/common.js index 3ff342953c..dd873085d9 100644 --- a/module/todo/js/common.js +++ b/module/todo/js/common.js @@ -51,11 +51,9 @@ function loadList(type, id) } - nameBoxLabel = typeof(nameBoxLabel) == "undefined" ? '' : nameBoxLabel; - if(nameBoxLabel) + if(typeof(nameBoxLabel) != "undefined") { - vision = typeof(vision) == "undefined" ? '' : vision; - if(type == 'custom' || (vision && vision == 'rnd')) + if(type == 'custom' || (typeof(vision) != "undefined" && vision == 'rnd')) { $('#nameBoxLabel').text(nameBoxLabel.custom); }