From b0e03ebf8e23db1c52b6c530328cf44f8accbd91 Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 15 Mar 2011 05:26:43 +0000 Subject: Refs #2538. Loading js/configuration.js again. Only updating tokens on success and showing a basic warning if refresh fails. git-svn-id: http://code.elgg.org/elgg/trunk@8719 36083f99-b078-4883-b0ff-0f9b5a30f544 --- js/lib/configuration.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'js/lib/configuration.js') diff --git a/js/lib/configuration.js b/js/lib/configuration.js index d0c852bd0..f724a2f01 100644 --- a/js/lib/configuration.js +++ b/js/lib/configuration.js @@ -1,7 +1,10 @@ elgg.provide('elgg.config'); -elgg.config.wwwroot = '/'; - +/** + * Returns the current site URL + * + * @return {String} The site URL. + */ elgg.get_site_url = function() { return elgg.config.wwwroot; } \ No newline at end of file -- cgit v1.2.3