diff --git a/app/assets/javascripts/property_hire_calendar_frontend.js b/app/assets/javascripts/property_hire_calendar_frontend.js index 8f314f6..87cdd39 100644 --- a/app/assets/javascripts/property_hire_calendar_frontend.js +++ b/app/assets/javascripts/property_hire_calendar_frontend.js @@ -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,13 +148,12 @@ var EventDialog = function(calendar,event){ } event_quick_view = $('
'); template = '