Opened 13 years ago

Closed 13 years ago

#2980 closed defect (fixed)

[Calendar] Multiple Calendars overwrite each other

Reported by: haysmark Owned by: Adam Peller
Priority: high Milestone: 0.9beta
Component: Widgets Version: 0.9
Keywords: Cc: haysmark@…
Blocked By: Blocking:

Description

When you change the month or year on one calendar, the days and styles on all of the calendars change. Here is the test I used. Also notice that the second and third calendars are solid blue.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

	<title>Calendar Widget Demo</title>

	<style type="text/css">
		@import "../../../dojo/resources/dojo.css";
		@import "../../themes/tundra/tundra.css";
		/*FIXME: should we have to manually include Calendar.css?*/
		@import "../../form/templates/Calendar.css";
	</style>
	<script type="text/javascript" src="../../../dojo/dojo.js"
		djConfig="isDebug: true"></script>
	<script type="text/javascript">
		dojo.require("dijit.form.Calendar");
		dojo.require("dijit.util.parser"); // scan page for widgets

		function myHandler(id,newValue){
			console.debug("onValueChanged for id = " + id + ", value: " + newValue);
		};
	</script>
</head>
<body class="tundra">

before
<input id="calendar" dojoType="dijit.form.Calendar" onValueChanged="myHandler(this.id,arguments[0])">
after
<p>
These links will
<a href="#" onClick="dijit.byId('calendar').disable()">disable</a>
/
<a href="#" onClick="dijit.byId('calendar').enable()">enable</a>
the text area above.
<input id="calendar2" dojoType="dijit.form.Calendar">
<p>Dynamic Calendar</p>
<input id="dynamiccalendar">
<script>
new dijit.form.Calendar({}, document.getElementById('dynamiccalendar'));
</script>
</p>
</body>
</html>

Change History (2)

comment:1 Changed 13 years ago by bill

Owner: changed from bill to Adam Peller

comment:2 Changed 13 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [8549]) Fix a couple more dojo.query scopes so multiple calendars render properly. Fixes #2980

Note: See TracTickets for help on using tickets.