Opened 5 years ago

Last modified 2 years ago

#18458 assigned defect

dojox.calendar.calendar startTimeAttr not work

Reported by: vtsuper Owned by: dg
Priority: undecided Milestone: 1.14
Component: Dojox Version: 1.10.3
Keywords: Cc:
Blocked By: Blocking:

Description

it works perfect in the following case.

var store = new Observable(new Memory({data: [
	{"id":1,"summary":"event1","startTime":"2015-01-12T10:00:00.000","endTime":"2015-01-12T11:00:00.000"},
	{"id":2,"summary":"event2","startTime":"2015-01-13T10:00:00.000","endTime":"2015-01-13T11:00:00.000"
]}));

new Calendar({
	decodeDate: function(s){return stamp.fromISOString(s);},
	encodeDate: function(d){return stamp.toISOString(d);},
});

but it fail once I change the startTimeAttr and endTimeAttr like this.

var store = new Observable(new Memory({data: [
	{"id":1,"summary":"event1","begin":"2015-01-12T10:00:00.000","end":"2015-01-12T11:00:00.000"},
	{"id":2,"summary":"event2","begin":"2015-01-13T10:00:00.000","end":"2015-01-13T11:00:00.000"
]}));

new Calendar({
	startTimeAttr: "begin",
	endTimeAttr: "end",
	decodeDate: function(s){return stamp.fromISOString(s);},
	encodeDate: function(d){return stamp.toISOString(d);}
});
}}})

Attachments (1)

bugs.JPG (10.9 KB) - added by vtsuper 5 years ago.
firebug produce this error

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by vtsuper

Attachment: bugs.JPG added

firebug produce this error

comment:1 Changed 4 years ago by dylan

Milestone: tbd1.12
Owner: changed from Adam Peller to dg
Status: newassigned

comment:2 Changed 2 years ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.