Compare commits

..

No commits in common. "master" and "revert-e1e90a83" have entirely different histories.

1 changed files with 40 additions and 9 deletions

View File

@ -77,7 +77,7 @@ var Calendar = function(dom,property_id){
c.modeBtns.each(function(){
if ($(this).data("mode") == view)
$(this).addClass("active");
});
})
if(view != "agenda"){
if(c.currentView == "agenda"){
// $("#sec1").addClass("span3").removeClass("span7");
@ -97,23 +97,23 @@ var Calendar = function(dom,property_id){
c.calendar.fullCalendar("refetchEvents");
loadeventsonviewchange = false;
}
};
}
if(c.currentView == "agenda"){toggleViews("agenda");loadeventsonviewchange = true;}
};
}
this.renderEvent = function(eventStick){
if(eventStick.recurring === true)
if(eventStick.recurring == true)
c.calendar.fullCalendar("refetchEvents");
else
c.calendar.fullCalendar("renderEvent",eventStick);
};
}
$(document).ready(function() {
c.initialize();
});
};
}
var EventDialog = function(calendar,event){
_t = this;
@ -148,12 +148,13 @@ var EventDialog = function(calendar,event){
}
event_quick_view = $('<div class="calendar-modal" style="display:none;"></div>');
template = '<div class="modal-content">' +
'<div class="modal-header">' +
'<div class="modal-header">' +
'<button type="button" class="close event-close-btn" data-dismiss="modal" aria-hidden="true">&times;</button>' +
'<h3>' + _event.title + '</h3>' +
'</div>' +
'<div class="modal-body">' +
'<div class="event_summary">' + time_string + '</br>' + _event.hiring_person_name + '</div>' + _event.note +
'<div class="event_summary">' + time_string + '<br>' + _event.hiring_person_name + '</div>'
_event.note +
'</div>' +
'<div class="modal-footer" />' +
'</div>';
@ -563,4 +564,34 @@ var AgendaView = function(calendar){
renderMonth();
}
}
}