Prev | Current Page 839 | Next

Frank Zammetti

"Practical DWR 2 Projects"

updateProject('targetDate', '" +
project.id + "', this.value);\">~~" +
""
],
cellFuncs, { escapeHtml : false }
);
for (var j = 0; j < timekeeper.users.length; j++) {
dwr.util.addOptions("divManageProjects_edit_ua_" + project.id,
[ { value : timekeeper.users[j].id,
text : timekeeper.users[j].username } ],
"value", "text"
);
}
var usersAssigned = project.usersAssigned;
if (usersAssigned != "") {
usersAssigned = usersAssigned.split(",");
for (var j = 0; j < usersAssigned.length; j++) {
dwr.util.setValue("divManageProjects_edit_ua_" + project.id,
usersAssigned[j]);
}
}
}
} // End iteration over projects collection.
After the table is built, we have another similar loop as seen in the last chunk that adds all
the users to a