summaryrefslogtreecommitdiff
path: root/js/dojo-1.6/dojox/widget/CalendarFx.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/dojo-1.6/dojox/widget/CalendarFx.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/js/dojo-1.6/dojox/widget/CalendarFx.js b/js/dojo-1.6/dojox/widget/CalendarFx.js
new file mode 100644
index 0000000..7d61f1e
--- /dev/null
+++ b/js/dojo-1.6/dojox/widget/CalendarFx.js
@@ -0,0 +1,37 @@
+/*
+ Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
+ Available via Academic Free License >= 2.1 OR the modified BSD license.
+ see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.widget.CalendarFx"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.widget.CalendarFx"] = true;
+dojo.provide("dojox.widget.CalendarFx");
+dojo.require("dojox.widget.FisheyeLite");
+
+dojo.declare("dojox.widget._FisheyeFX",null, {
+ // summary
+ // A mixin to add a FisheyeLite effect to the calendar
+ addFx: function(query, fromNode) {
+ //Use the query and base node passed from the calendar view mixin
+ //to select the nodes to attach the event to.
+ dojo.query(query, fromNode).forEach(function(node){
+ new dojox.widget.FisheyeLite({
+ properties: {
+ fontSize: 1.1
+ }
+ }, node);
+ });
+ }
+});
+
+dojo.declare("dojox.widget.CalendarFisheye",
+ [dojox.widget.Calendar,
+ dojox.widget._FisheyeFX], {
+ // summary: The standard Calendar. It includes day, month and year views.
+ // FisheyeLite effects are included.
+ }
+);
+
+}