12345678910111213141516171819202122232425262728293031323334353637 |
- /*
- Copyright (c) 2004-2012, 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.
- }
- );
- }
|