|
|
@ -3,7 +3,7 @@ YUI().use('yui2-container', 'yui2-calendar', function(Y) { |
|
|
|
|
|
|
|
document.body.className += ' yui-skin-sam'; |
|
|
|
|
|
|
|
YAHOO.util.Event.onDOMReady(function(){ |
|
|
|
YAHOO.util.Event.onDOMReady(function() { |
|
|
|
|
|
|
|
var Event = YAHOO.util.Event, |
|
|
|
Dom = YAHOO.util.Dom, |
|
|
@ -36,12 +36,12 @@ YUI().use('yui2-container', 'yui2-calendar', function(Y) { |
|
|
|
}); |
|
|
|
|
|
|
|
dialog = new YAHOO.widget.Dialog("attcalendarcontainer", { |
|
|
|
visible:false, |
|
|
|
context:["show", "tl", "bl"], |
|
|
|
buttons:[{text: M.str.attendance.caltoday, handler: resetHandler, isDefault:true}, |
|
|
|
visible: false, |
|
|
|
context: ["show", "tl", "bl"], |
|
|
|
buttons: [{text: M.str.attendance.caltoday, handler: resetHandler, isDefault: true}, |
|
|
|
{text: M.str.attendance.calclose, handler: closeHandler}], |
|
|
|
draggable:false, |
|
|
|
close:false |
|
|
|
draggable: false, |
|
|
|
close: false |
|
|
|
}); |
|
|
|
dialog.setHeader(''); |
|
|
|
dialog.setBody('<div id="cal"></div>'); |
|
|
@ -61,8 +61,8 @@ YUI().use('yui2-container', 'yui2-calendar', function(Y) { |
|
|
|
if (!calendar) { |
|
|
|
|
|
|
|
calendar = new YAHOO.widget.Calendar("cal", { |
|
|
|
iframe:false, // Turn iframe off, since container has iframe support.
|
|
|
|
hide_blank_weeks:true // Enable, to demonstrate how we handle changing height, using changeContent.
|
|
|
|
iframe: false, // Turn iframe off, since container has iframe support.
|
|
|
|
hide_blank_weeks: true // Enable, to demonstrate how we handle changing height, using changeContent.
|
|
|
|
}); |
|
|
|
|
|
|
|
calendar.cfg.setProperty("start_weekday", M.attendance.cal_start_weekday); |
|
|
|