Spotlight enables librarians, curators, and others who are responsible for digital collections to create attractive, feature-rich websites that highlight these collections.
Other
160
stars
64
forks
source link
Strange JS bug on initial exhibit item image upload #1003
This seems to only happen the first time you try to upload an image from an exhibit item. I believe this comes from the croppable plugin somewhere.
In a new exhibit/spotlight instance try to add a Site Masthead in the Appearances section. Type the title of an item and select it from the autocomplete. A javascript error occurs which seems to be about the cropbox's jcrop data being undefined. The interesting thing is, if you refresh the page and retry it works fine (maybe turbolinks issue?). Stacks is being slow for me this morning so the full image never loads in the example below but you can see that the JS error doesn't happen and Jcrop begins to load.
This seems to only happen the first time you try to upload an image from an exhibit item. I believe this comes from the croppable plugin somewhere.
In a new exhibit/spotlight instance try to add a Site Masthead in the Appearances section. Type the title of an item and select it from the autocomplete. A javascript error occurs which seems to be about the cropbox's jcrop data being undefined. The interesting thing is, if you refresh the page and retry it works fine (maybe turbolinks issue?). Stacks is being slow for me this morning so the full image never loads in the example below but you can see that the JS error doesn't happen and Jcrop begins to load.