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");
}
CommentFileSizeAuthor
loadShouts_in_subdir.patch1.73 KBflevour

Comments

disterics’s picture

Status: Needs review » Closed (fixed)

Thanks for the patch. I applied the one submitted in a duplicate issue #161157