Merge branch 'master' into 'master'

Update property_hire_calendar_frontend.js



See merge request !3
This commit is contained in:
wmcheng 2019-11-09 23:48:17 +08:00
commit 0bd0a61986
1 changed files with 9 additions and 40 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;
@ -153,8 +153,7 @@ var EventDialog = function(calendar,event){
'<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>';
@ -565,33 +564,3 @@ var AgendaView = function(calendar){
}
}