=== modified file 'dhis-2/dhis-web/dhis-web-api-fred/src/main/webapp/WEB-INF/api-fred-velocity/v1/facilities.vm' --- dhis-2/dhis-web/dhis-web-api-fred/src/main/webapp/WEB-INF/api-fred-velocity/v1/facilities.vm 2012-12-08 17:25:09 +0000 +++ dhis-2/dhis-web/dhis-web-api-fred/src/main/webapp/WEB-INF/api-fred-velocity/v1/facilities.vm 2012-12-08 20:54:41 +0000 @@ -2,7 +2,7 @@ $(function () { $('.activateButton').click(function () { if (confirm('Are you sure you want to activate this facility?')) { - var id = $(this).parent().parent().find('.facility-id').text(); + var id = $(this).parent().parent().parent().data('facility-id'); $.ajax({ url: 'facility-service/' + id + '/activate', @@ -16,7 +16,7 @@ $('.deactivateButton').click(function () { if (confirm('Are you sure you want to de-activate this facility?')) { - var id = $(this).parent().parent().find('.facility-id').text(); + var id = $(this).parent().parent().parent().data('facility-id'); $.ajax({ url: 'facility-service/' + id + '/deactivate', @@ -38,33 +38,33 @@ */ -
Name | @@ -74,22 +74,22 @@||
---|---|---|
$facility.name | +||
$facility.name | -
-
+
+ |
@@ -100,7 +100,7 @@
#end
#macro( mapContent )
-
#if( $facility.active )
-
-
+
+
#end
|