applied comment and refactor code

This commit is contained in:
Alexandre Cloutier
2014-07-07 17:42:43 -04:00
parent f0b8eb8dfb
commit b5c0363400
4 changed files with 29 additions and 25 deletions

View File

@@ -229,9 +229,9 @@ function initPreferences() {
// Calendar whiteList
var whiteList = $("appointmentsWhiteListWrapper");
if(whiteList) {
var whiteListValue = $("whiteListValue").getValue().split(",");
if (whiteListValue.length != 0)
{
var whiteListValue = $("whiteListValue").getValue();
if (whiteListValue != "") {
whiteListValue = whiteListValue.split(",");
var tablebody = $("appointmentsWhiteListWrapper").childNodesWithTag("table")[0].tBodies[0];
for (i = 0; i < whiteListValue.length; i++)
{