← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20631: Analysis, removing url params after load.

 

------------------------------------------------------------
revno: 20631
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2015-10-12 14:12:49 +0300
message:
  Analysis, removing url params after load.
modified:
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/app.js
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/app.js
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/app.js
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app.js
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/app.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-apps/src/main/webapp/dhis-web-event-reports/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/app.js	2015-10-11 12:56:59 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/app.js	2015-10-12 11:12:49 +0000
@@ -8336,6 +8336,11 @@
 						}
 					}
 
+                    // remove params from url
+                    if (id || session) {
+                        history.pushState(null, null, '.')
+                    }
+
                     var initEl = document.getElementById('init');
                     initEl.parentNode.removeChild(initEl);
 

=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/app.js	2015-10-03 12:51:50 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/app.js	2015-10-12 11:12:49 +0000
@@ -7977,6 +7977,11 @@
 						}
 					}
 
+                    // remove params from url
+                    if (id || session) {
+                        history.pushState(null, null, '.')
+                    }
+
                     var initEl = document.getElementById('init');
                     initEl.parentNode.removeChild(initEl);
 

=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/app.js	2015-10-03 12:51:50 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/app.js	2015-10-12 11:12:49 +0000
@@ -9920,6 +9920,11 @@
 				}
 			}
 
+            // remove params from url
+            if (id || session || base) {
+                history.pushState(null, null, '.')
+            }
+
             var initEl = document.getElementById('init');
             initEl.parentNode.removeChild(initEl);
 

=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app.js	2015-10-12 10:59:33 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/app.js	2015-10-12 11:12:49 +0000
@@ -7819,6 +7819,11 @@
 						}
 					}
 
+                    // remove params from url
+                    if (id || session) {
+                        history.pushState(null, null, '.')
+                    }
+
                     var initEl = document.getElementById('init');
                     initEl.parentNode.removeChild(initEl);
 

=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/app.js	2015-10-03 12:51:50 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/app.js	2015-10-12 11:12:49 +0000
@@ -7773,6 +7773,11 @@
 						}
 					}
 
+                    // remove params from url
+                    if (id || session) {
+                        history.pushState(null, null, '.')
+                    }
+
                     var initEl = document.getElementById('init');
                     initEl.parentNode.removeChild(initEl);