[#2238] [Scheduler] Fix undefined this.scheduleCells

This commit is contained in:
Calum Lind 2014-07-13 23:07:29 +01:00
parent f77440efcb
commit 5d5edd2639

View File

@ -483,7 +483,11 @@ Deluge.ux.ScheduleSelector = Ext.extend(Ext.form.FieldSet, {
var hourConfig = config[i]; var hourConfig = config[i];
for (var j=0; j < this.daysOfWeek.length; j++) { for (var j=0; j < this.daysOfWeek.length; j++) {
var cell = this.scheduleCells[this.daysOfWeek[j]][i]; if (this.scheduleCells == undefined) {
var cell = hourConfig[j];
} else {
var cell = this.scheduleCells[this.daysOfWeek[j]][i];
}
cell.currentValue = cell.oldValue = hourConfig[j]; cell.currentValue = cell.oldValue = hourConfig[j];
this.updateCell(cell); this.updateCell(cell);
} }