<script type="text/javascript">
function updateCal(){
if(typeof SP.UI.ApplicationPages.CalendarMouseHandler==="function"){
SP.UI.ApplicationPages.CalendarMouseHandler.prototype.old$92_1 = SP.UI.ApplicationPages.CalendarMouseHandler.prototype.$92_1;
SP.UI.ApplicationPages.CalendarMouseHandler.prototype.$92_1 = function($p0) {
var callParent = true;
var node = $p0.target;
if(node.tagName === "A"){
var evtid = node.getAttribute("evtid");
if(evtid && evtid === "new_item"){
//callParent = false;
alert("add new link clicked");
}
}
if(callParent){
this.old$92_1($p0);
}
};
}
}
_spBodyOnLoadFunctionNames.push("updateCal");
</script>
Comments