=== modified file 'dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/DashboardController.java' --- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/DashboardController.java 2013-07-25 18:52:33 +0000 +++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/DashboardController.java 2013-07-26 08:38:57 +0000 @@ -154,7 +154,7 @@ ContextUtils.okResponse( response, "Dashboard item added" ); } - @RequestMapping( value = "/{dashboardUid}/items/{itemUid}/position/{position}", method = RequestMethod.PUT, consumes = "application/json" ) + @RequestMapping( value = "/{dashboardUid}/items/{itemUid}/position/{position}", method = RequestMethod.POST ) public void moveItem( HttpServletResponse response, HttpServletRequest request, @PathVariable String dashboardUid, @PathVariable String itemUid, @PathVariable int position ) throws Exception { @@ -167,7 +167,7 @@ } if ( dashboard.moveItem( itemUid, position ) ) - { + { dashboardService.updateDashboard( dashboard ); ContextUtils.okResponse( response, "Dashboard item moved" ); === modified file 'dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js' --- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js 2013-07-26 06:59:52 +0000 +++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/javascript/dashboard.js 2013-07-26 08:38:57 +0000 @@ -6,6 +6,10 @@ dhis2.db.currentShareType; dhis2.db.currentShareId; +//------------------------------------------------------------------------------ +// Document ready +//------------------------------------------------------------------------------ + $( document ).ready( function() { $( "#interpretationArea" ).autogrow(); @@ -43,12 +47,14 @@ hitItem: "