Skip to content

Instantly share code, notes, and snippets.

@shellscape
Created February 22, 2011 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shellscape/838990 to your computer and use it in GitHub Desktop.
Save shellscape/838990 to your computer and use it in GitHub Desktop.
var _selectDate = $.datepicker._selectDate,
selectHook = function(id, dateStr){
var target = $(id),
inst = this._getInst(target[0]),
result = _selectDate.call(this, id, dateStr);
onAfterSelect && onAfterSelect(inst);
return result;
},
onAfterSelect = function(instance){
console.log(instance);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment