dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #11177
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3155: minor fix, made referrerBack simpler
------------------------------------------------------------
revno: 3155
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-03-24 14:43:29 +0100
message:
minor fix, made referrerBack simpler
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js 2011-03-24 13:32:53 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js 2011-03-24 13:43:29 +0000
@@ -13,8 +13,8 @@
*/
function referrerBack( defaultUrl ) {
if(document.referrer != "") {
- var splitReferrer = document.referrer.split("\/");
- var referrer = splitReferrer[splitReferrer.length-1];
+/* var splitReferrer = document.referrer.split("\/");
+ var referrer = splitReferrer[splitReferrer.length-1]; */
location.href = referrer;
} else {
location.href = defaultUrl;