om/core/js/om.js seems to be the culprit...

Comments

danielhonrade’s picture

Status: Active » Closed (cannot reproduce)

Hi drupallerina,

I tried a different theme, seems colorbox is not working still, also tried to disable the om.js, still not working.

discipolo’s picture

I beg to differ... using colorbox-module 7.x-1.0-beta2 and OM base theme 7.x-1.9, colorbox works splendidly after disabling 'om.js' in 'om.info'.
I will make an upgrade to 7.1.12 and see if the error persists.

You can see the working colorbox module here: http://stahlundform.devel.rosenstrauch.com/content/balkonkonstruktion

danielhonrade’s picture

Ok, got it...

just do this instead:

/**
 * Disabled this functionality due to colorbox compatibility problem
 * for external links to open in new window
   $('a[href^=http]').click( function() { 
     window.open(this.href);
     return false;	    
  });
 *
 */

This is found inside om.js, just disable this code block by deleting or replacing it with this one
which is inside a comment.

Already committed this on dev and will be available in 12hours at least.

thanks,
daniel

discipolo’s picture

Version: 7.x-1.9 » 7.x-1.12
Status: Closed (cannot reproduce) » Active

can confirm that this behaiviour persists in this version.
removing the

//for external links, open in new window

$('a[href^=http]').click( function() {

window.open(this.href);

return false;

});

from om.js solves the problem

danielhonrade’s picture

I am thinking of making all js as optional in theme settings... or create a module for functionalities of om

danielhonrade’s picture

Status: Active » Closed (fixed)