Picture of Chris Gillison
Hotgraphic popup not showing
by Chris Gillison - Tuesday, 25 September 2018, 12:44 PM
 

Hi all.

Something seems to have gone a bit floopy with adapt-contrib-hotgraphic. I just created a new course this morning using the framework and right out of the box the popups simply aren't showing. Sometimes they appear if you resize the browser window.

Anyone have any ideas?

Picture of Matt Leathes
Re: Hotgraphic popup not showing
by Matt Leathes - Tuesday, 25 September 2018, 1:45 PM
 

What version of framework and hotgraphic are you using?

Picture of Chris Gillison
Re: Hotgraphic popup not showing
by Chris Gillison - Tuesday, 25 September 2018, 2:10 PM
 

Sorry Matt. Away from my desk So can’t check ATM, but l created the course with adapt create course this morning so I’m guessing the latest whatever that is (or is it more complicated than that?!). Will check in an hour or so.

Picture of Chris Gillison
Re: Hotgraphic popup not showing
by Chris Gillison - Tuesday, 25 September 2018, 2:39 PM
 

Hi Matt.

Framework version 3.2.1

Hotgraphic version 3.0.1

Picture of Matt Leathes
Re: Hotgraphic popup not showing
by Matt Leathes - Tuesday, 25 September 2018, 3:56 PM
 

Yep, I see what you mean - seems to have been caused the PR to fix this issue

If you change line 73 of grunt/tasks/schema-defaults.js back to the following, then run grunt dev or grunt build it should fix the problem:

grunt.file.write(currentCourseJsonFile, JSON.stringify(currentCourseJson, null, 4));

Picture of Chris Gillison
Re: Hotgraphic popup not showing
by Chris Gillison - Tuesday, 25 September 2018, 4:07 PM
 

Wow. How on earth did you track that down?! (No need to explain - I dare say it would be way, way over ny head!).

Many thanks Matt - works perfectly now.

Picture of Matt Leathes
Re: Hotgraphic popup not showing
by Matt Leathes - Tuesday, 25 September 2018, 4:57 PM
 

I had a copy of Adapt I'd downloaded a couple of weeks ago that was working fine so it was a case of using WinMerge to compare the two courses to see what was different... still took a bit of tracking down given that changes to files in the grunt folder was, typically, the last place I thought to look!

Seem to have ended up spending my entire day comparing files in WinMerge...