if(this.visible == true){
// Reminds the app that the size of the interior content just changed, since
// the scrollbars will normally only update themselves when the canvas size changes.
// NOTE: This should work by sending canvas.onwidth.sendEvent() and canvas.onheight.sendEvent(),
// which would be more concise, but for reasons I can't quite seem to discern,
// that will inconsistently result in the vertical scrollbar being shortened.
cvscroll.setAttribute('scrollheight', (chscroll.visible ? canvas.height - 15 : canvas.height+1));
chscroll.setAttribute('scrollwidth', (cvscroll.visible ? canvas.width - 15 : canvas.width+1));
}
if (p != null) {
this.setAttribute('text', this.i18nUser + ": " + p.childNodes[0]);
}
if (p != null) {
this.setAttribute('text', this.i18nLastLogin + ": " + p.childNodes[0]);
}
parent.dashboard.setAttribute("text", this.dashboardTabTitle);
parent.project.setAttribute("text", this.projectTabTitle);
parent.people.setAttribute("text", this.peopleTabTitle);
this.setAttribute('text', this.projectName);
this.value = p.attributes.id;
if (this.value == 1) {
parent.selectItem(1);
}
var dp = listProjectsDS.getPointer();
dp.setXPath("listProjectsDS:/response/projects/project[@id = '"
+projectID+"']/running"),
this.setAttribute('text', dp.getNodeText());
var dp = listProjectsDS.getPointer();
dp.setXPath("listProjectsDS:/response/projects/project[@id = '"
+projectID+"']/description"),
this.setAttribute('text', dp.getNodeText());
var date = new Date();
var nowMillis = date.getTime();
if (nowMillis > deadlineMillis) this.setAttribute('visible', true);
parent.peopleTab.setAttribute('text', this.people);
parent.tasksTab.setAttribute('text', this.tasks);
parent.finishedTasksTab.setAttribute('text', this.finishedTasks);
this.setAttribute('text', this.projectName);
this.value = p.attributes.id;
if (this.value == 1) {
parent.selectItem(1);
}
var dp = listProjectsDS.getPointer();
dp.setXPath("listProjectsDS:/response/projects/project[@id = '"
+projectID+"']/description"),
this.setAttribute('text', dp.getNodeText());
parent.tasksTab.setAttribute('text', this.tasks);
parent.finishedTasksTab.setAttribute('text', this.finishedTasks);
this.filterTasks(projComboProject.getValue());
this.filterTasks(comboValue);
this.filterTasks(projComboProject.getValue());
this.filterTasks(comboValue);
parent.peopleTab.setAttribute('text', this.people);
if (parent.hscroll.visible == true){
var h = canvas.height-15;
}else{
var h = canvas.height+1;
}
this.setAttribute('scrollheight', h);
if (parent.vscroll.visible == true){
var w = canvas.width-15;
}else{
var w = canvas.width+1;
}
this.setAttribute('scrollwidth', w);
canvas.onwidth.sendEvent();
lz.Cursor.showHandCursor(false);
lz.Cursor.showHandCursor(true);