$(document).ready(function(){$(".publicationsCalendar").each(function(){var id=$(this).data("id");var url="/Publications/Calendar/"+id+"/";var block=$(this);$.get(url,function(html){block.html(html);},'html');});$(document).on("click","a.calendarPrev, a.calendarNext",function(event){event.preventDefault();var url=$(this).attr("href");var block=$(this).closest(".publicationsCalendar");$.get(url,function(html){block.html(html);},'html');});$(document).on("click","#changePubDate",function(event){event.preventDefault();var id=$(this).data("id");var month=$("#pubMonth").val();var year=$("#pubYear").val();var url="/Publications/Calendar/"+id+"/"+year+"/"+month+"/";var block=$(this).closest(".publicationsCalendar");$.get(url,function(html){block.html(html);},'html');});});