ViewDayListSelect.js (PHProjekt-6.2.0) | : | ViewDayListSelect.js (PHProjekt-6.2.1) | ||
---|---|---|---|---|
skipping to change at line 127 | skipping to change at line 127 | |||
fillHeaderArray: function() { | fillHeaderArray: function() { | |||
// Summary: | // Summary: | |||
// Fills the header array with the main row of the table. | // Fills the header array with the main row of the table. | |||
var headerData = phpr.DataStore.getData({url: this._header DataUrl}); | var headerData = phpr.DataStore.getData({url: this._header DataUrl}); | |||
this._header = []; // It is needed to explicitly empty t he array | this._header = []; // It is needed to explicitly empty t he array | |||
this._header.columnsWidth = -1; | this._header.columnsWidth = -1; | |||
this._header.users = []; | this._header.users = []; | |||
for (var user in headerData) { | for (var user in headerData) { | |||
var userId = parseInt(headerData[user].id); | var userId = parseInt(headerData[user].id, 10); | |||
var display = headerData[user].display; | var display = headerData[user].display; | |||
this._header.users[user] = []; | this._header.users[user] = []; | |||
this._header.users[user].id = userId; | this._header.users[user].id = userId; | |||
this._header.users[user].display = display; | this._header.users[user].display = display; | |||
} | } | |||
this._header.columnsWidth = Math.floor((100 - this._widthHourColumn) / t his.users.length); | this._header.columnsWidth = Math.floor((100 - this._widthHourColumn) / t his.users.length); | |||
}, | }, | |||
getUserColumnPosition: function(userId) { | getUserColumnPosition: function(userId) { | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |