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

iLLin’s picture

It will show a processed class if it's working correctly.

danepowell’s picture

Title: Ze module, it does nothing! » Silent fail if colorbox doesn't load

Yeesh, 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.

iLLin’s picture

OK, I'll think on that.

iLLin’s picture

Status: Active » Fixed

Added an alert if the colorbox library is not loaded.

  • iLLin committed 66e7875 on 7.x-3.x
    Issue: #2218161: Added javascript alert if colorbox is not loaded
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.