Jump to content

Recommended Posts

Posted

Hey Guys,

 

having some trouble with the weekview being blank, I have updated the full calender as per another post that was having the same issue. After JSON debugging I see this error.

 

 

/HAP/api/js/beforehap?/HAP/bookingsystem/Cal.aspx=10.5.1014.1930 (line 1, col 2)

 

 

TypeError: (intermediate value)(...) is not a function

 

 

Cal.aspx (line 123, col 13)

 

 

 

 

 

 

 

typeError: $(...).fullCalendar is not a function

 










$("#calendar").fullCalendar({

 

 

Any ideas?

Posted

yep, still the same

 

in ie11 developer tools, the beforehap call contains the 2.1.1 js but it still cant find the .fullcalendar function. I've tired doing it several times from the original files with the same result.

 

Where can I exclude the fullcalendar js from the beforehap call and add it manually to test?

 

Thanks

Posted

Which version of the booking system are you using? It should be v10.5 of the hap core and v4.6 of the booking system.

 

You should be able to reference fullCalendar again after the after hap load script reference and it should override the function if it's later, alternatively delete the contents of fullCalendar.js and then reference your own version.

 

Unfortunately fullCalendar is a dependency referenced in the code of hap.bookingsystem.dll

  • Thanks 1
Posted

Ok, so I changed the following in the BookingSystem Register class...

new RegistrationPath { LoadOn = new string[] { "bookingsystem" }, Path = "~/scripts/jquery.ba-hashchange.min.js", Minify =  false },
new RegistrationPath { LoadOn = new string[] { "bookingsystem/cal.aspx" }, Path = "~/scripts/moment.min.js",Minify =  false},
new RegistrationPath { LoadOn = new string[] { "bookingsystem/cal.aspx" }, Path = "~/scripts/fullcalendar.min.js" }

 

I tried the other combinations but it needed both the query hashchange and moment js files not to be processed by the ajax minify library.

 

After compiling and replacing the HAp.BookingSystem.dll with mine it all worked ok.

 

I'm guessing there are some eval statements in the js files that the minify library doesn't like

 

I've attached the new dll incase it is of use to anyone else. I'm using jQuery hashchange event - v1.3 and moment.min.js 2.10.6

 

HAP.BookingSystem.zip

  • Thanks 1
Posted

Hey ITGuyWestMidlands and Nickbro

 

Thank you so much for your help. This fix works.

 

Is there any reason the column titles do not display Mon-Fri?

 

Thanks once again

  • 6 months later...
Posted

@ITGuyWestMidlands , @nickbro,

 

I can get the minify =false fix committed, however it seems to me that moment.min.js isn't getting included - nick: do you have a nuget config that you've not checked in?

 

In terms of this "mess" - if I try adding moment.min.js, setting minify=false, i'm then just getting a stack overflow / out of stack space error - which i don't personally know how to diagnose in this case - any thoughts on why i'm seemingly seeing different behaviour to you guys? [i'm using same version of moment.min.js as itguywestmidlands and also tried latest.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...