The javascript in gigya_sharebar.js does not conform to Drupal JavaScript best practices (http://drupal.org/node/756722#behaviors) and use jQuery(document).ready() instead of Drupal.behaviors for adding functionality to the page. This causes errors if content is added/replaced via AJAX or other means on the page other than a normal browser page load.

This code should be refactored to use Drupal.behaviors appropriately.

Comments

bmcmurray’s picture

StatusFileSize
new2.67 KB

Attached is a patch which reworks the JavaScript of gigya_sharebar.js to use a Drupal.behavior properly.

ericduran’s picture

Status: Active » Reviewed & tested by the community

Not much to say. We probably should add a detach method but thats not there now. So this is good too.

cameron tod’s picture

StatusFileSize
new1.95 KB

Here's a patch which updates gigya_comments.js to use Drupal.behaviors.

gambaweb’s picture

Status: Reviewed & tested by the community » Closed (fixed)

@cam8001 thanks for that committed to dev