Closed (fixed)
Project:
Colorbox Node
Version:
7.x-3.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2014 at 21:32 UTC
Updated:
5 Nov 2014 at 17:54 UTC
Jump to comment: Most recent
As the title implies, I'm stumped. I have a page with a simple link in it, thusly:
<a class="colorbox-node" href="/mysite/trainings?width=600&height=600">view details</a>
In other words, my site is in a subdirectory ("mysite") and I want to load the View page at "trainings".
I enabled the module, and confirmed that colorbox_node.js is getting loaded on the page. But when I click the link, it goes straight to the trainings page- no colorbox, no nothing. Inspecting the HTML, the link looks exactly as above- I would expect it to have an additional "processed" class or something if colorbox_node were actually acting on it. Any thoughts?
Comments
Comment #1
iLLin commentedIt will show a processed class if it's working correctly.
Comment #2
danepowell commentedYeesh, it was pretty simple actually- for some reason colorbox was not loading, even though the status report said the library was found. Simply clearing the caches caused it to load.
The problem is that in the first few lines of colorbox_node.js, it checks if colorbox exists, and if not, it fails silently. It would be nice if some sort of error were returned here instead of a silent fail.
Comment #3
iLLin commentedOK, I'll think on that.
Comment #4
iLLin commentedAdded an alert if the colorbox library is not loaded.