Closed (fixed)
Project:
Shoutbox
Version:
7.x-1.0-alpha2
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Apr 2012 at 17:52 UTC
Updated:
10 Apr 2014 at 21:20 UTC
Jump to comment: Most recent
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 commented