Skip to content

Instantly share code, notes, and snippets.

@ahmadwaliesipick
Created April 4, 2018 12:41
Show Gist options
  • Save ahmadwaliesipick/f94547e96bc8e33e0cbd4178ab2839b1 to your computer and use it in GitHub Desktop.
Save ahmadwaliesipick/f94547e96bc8e33e0cbd4178ab2839b1 to your computer and use it in GitHub Desktop.
Calendar Add Button
$(document).ready(function(){
function showEventsSetp2() {
$(".select-doctor").fancybox({
helpers: {
title: {
type: 'inside',
position: 'top'
},
overlay : {closeClick: false}
},
tpl: {
closeBtn: '<a href="#" class="fancy-close icon-close"></a>'
},
title: 'Add Event',
autoSize: false,
closeBtn: true,
width: 900,
height: 560,
autoheight: false,
eventAfterAllRender: function(view){
if(view.name == 'month')
{
$('.fc-day').each(function(){
$(this).css('position','relative');
$(this).append('<a class="add_event_label" `enter code here`style="position:absolute;bottom:0;left:0;right:0;display: block;border-top:1px solid black;font-size:12px;color:#000;text-align:center;cursor:pointer;">(+)Add Event</a>');
});
}
},
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment