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

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options