Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I use shoutbox with periodic refresh, each time the refresh comes I see the error in firebug.
This is in shoutbox-form.js:
$.each(Drupal.shoutbox.afterPost, function (func) {
if ($.isFunction(this.execute)) {
this.execute();
}
});
Beacause the Drupal.shoutbox.afterPost is undefined.
My fix is:
if (Drupal.shoutbox.afterPost)
$.each(Drupal.shoutbox.afterPost, function (func) {
if ($.isFunction(this.execute)) {
this.execute();
}
});
Comments
Comment #1
vitalblue CreditAttribution: vitalblue commented