added afterCalChangeEventHook
--- a/js/scal/javascripts/scal.js
+++ b/js/scal/javascripts/scal.js
@@ -53,6 +53,7 @@ scal.prototype = {
);
this.options = Object.extend({
oncalchange: Prototype.emptyFunction,
+ aftercalchange: Prototype.emptyFunction,
daypadding: false,
titleformat: 'mmmm yyyy',
updateformat: 'yyyy-mm-dd',
@@ -292,6 +293,7 @@ scal.prototype = {
this.title.update(this.currentdate.format(this.options.titleformat));
this._buildCal();
this._updateTitles();
+ this.options.aftercalchange();
},
_setCurrentDate: function(date){
this.currentdate = new Date(date.getFullYear(),date.getMonth(),date.getDate());
Feel free to include it
Post new comment