Closed (fixed)
Project:
Shoutbox
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Jul 2007 at 19:16 UTC
Updated:
16 Apr 2008 at 22:31 UTC
The loadShouts function makes AJAX calls to current domain root dir, regardless of where Drupal has been installed (see below). This behaviour breaks auto-refresh when Drupal is installed in a domain sub-directory.
The attached patch fixes the bug adding a "baseUrl" to the options hash.
This patch has been sponsored by Audiominds.
/**
* Reloads all shouts from the server.
*/
Drupal.shoutbox.loadShouts = function() {
$("#shoutbox-posts").load("/shoutbox/js/view");
}
| Comment | File | Size | Author |
|---|---|---|---|
| loadShouts_in_subdir.patch | 1.73 KB | flevour |
Comments
Comment #1
disterics commentedThanks for the patch. I applied the one submitted in a duplicate issue #161157