← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6966: Fixed issue with paging

 

------------------------------------------------------------
revno: 6966
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-05-16 21:30:54 +0200
message:
  Fixed issue with paging
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	2012-05-15 07:24:04 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js	2012-05-16 19:30:54 +0000
@@ -1551,8 +1551,15 @@
 		
 		url = link + "?currentPage=" + currentPage + "&pageSize=" + pageSize;
 		
-		byId( 'filterKeyForm' ).action = url;
-		byId( 'filterKeyForm' ).submit();
+		if ( $( '#filterKeyForm' ).length )
+		{
+			$( '#filterKeyForm' ).attr( 'action', url );
+			$( '#filterKeyForm' ).submit();
+		}
+		else
+		{
+			window.location.href = url;
+		}
 	}
 	else
 	{