/* Copyright (c) 2011 Synology Inc. All rights reserved. */

MODULE_CALENDAR=Ext.extend(SYNOBLOG_MODULE,{dp:null,constructor:function(b,a){SYNOBLOG.instance().on("article_update",this.updateModuleContent,this);MODULE_CALENDAR.superclass.constructor.call(this,b,a)},init_module:function(){this.updateModuleContent()},updateModuleContent:function(){if(this.dp){this.dp.destroy()}this.dp=new SynoDatePicker({renderTo:Ext.get("calendar_content"),showToday:false,listeners:{afterrender:{fn:function(){(function(){document.activeElement.blur();Ext.getBody().focus()}).defer(1000)},scope:this,single:true}}})}});SYNOBLOG.instance().registerModule("calendar",{title:null,width:0,height:0},MODULE_CALENDAR);
