cromertech Posted March 12, 2014 Posted March 12, 2014 I've set this up side by side with V9 and most parts are working without hitch but the booking system will not load the bookings into the grid. The weekview and day view work fine just the main page where the actual bookings can be made. Chrome developer tools gives me 2 errors on this page although the line references will change depending on the number of defined resources (This is with a single room as a test): Line 291 Uncaught SyntaxError: Unexpected identifier Line 294 Uncaught ReferenceError: resource is not defined (anonymous function) I think I have traced the second error to an unassigned value in the resource variables named 'rooms'. I have put below the code that it applies to. Line 291 contains this function resource(name, type, years, quantities, readonly, multiroom, maxlessons, rooms, disclaimer, canshare, notes, allowance) Line 294 has this with the empty brackets in red that I think may be causing the problem. new resource("Test", "Room", [ "Year 7", "Year 8", "Year 9" ], [ "20" ], false, true, "0",[color=#ff0000] [ ][/color], "", false, false, null) There doesn't appear to be a place in the config for this.
minimoo Posted March 12, 2014 Posted March 12, 2014 Ok - I think this is already fixed, and problem is due to a missing ; on a line before we do some basic compression of the javascript in hap. I think Home Access Plus+ - Source Code is the change that will get rid of those 2 errors.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now