=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/commons.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/commons.js 2010-02-03 16:07:25 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/commons.js 2010-02-04 08:29:27 +0000
@@ -1,4 +1,11 @@
+$( document ).ready( function(){
+
+$( "table.listTable tbody tr:odd" ).addClass( "listAlternateRow" );
+$( "table.listTable tbody tr:even" ).addClass( "listRow" );
+
+});
+
/**
* Redirects to the translate GUI.
*
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm 2010-01-19 07:28:20 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm 2010-02-04 08:29:27 +0000
@@ -14,9 +14,9 @@
+
-
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/popup.vm'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/popup.vm 2009-12-14 17:40:23 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/popup.vm 2010-02-04 08:29:27 +0000
@@ -14,9 +14,9 @@
#end
+
-
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/dataDictionary.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/dataDictionary.vm 2009-11-12 17:59:58 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/dataDictionary.vm 2010-02-04 08:29:27 +0000
@@ -19,20 +19,13 @@
$i18n.getString( "operations" ) |
- #set( $mark = false )
- #set( $info = false )
#foreach( $dataDictionary in $dataDictionaries )
-
- $encoder.htmlEncode( $dataDictionary.name ) |
- |
- |
- |
+
+ $encoder.htmlEncode( $dataDictionary.name ) |
+ |
+ |
+ |
- #if( $mark )
- #set( $mark = false )
- #else
- #set( $mark = true )
- #end
#end
@@ -55,7 +48,7 @@
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/dataElement.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/dataElement.vm 2009-11-07 14:09:00 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/dataElement.vm 2010-02-04 08:29:27 +0000
@@ -55,27 +55,21 @@
$i18n.getString( "operations" ) |
- #set( $mark = false )
#foreach( $dataElement in $dataElements )
-
- $encoder.htmlEncode( $dataElement.name ) |
+
+ $encoder.htmlEncode( $dataElement.name ) |
#if ( $dataDictionaryMode == "extended" )
- |
+ |
#else
- |
+ |
#end
- |
- |
- |
+ |
+ |
+ |
#if ( $forumIntegration )
- |
+ |
#end
- #if( $mark )
- #set( $mark = false )
- #else
- #set( $mark = true )
- #end
#end
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/dataElementGroupSet.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/dataElementGroupSet.vm 2009-11-04 06:39:59 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/dataElementGroupSet.vm 2010-02-04 08:29:27 +0000
@@ -17,25 +17,18 @@
$i18n.getString( "name" ) |
$i18n.getString( "operations" ) |
-
- #set( $mark = false )
+
#foreach( $dataElementGroupSet in $dataElementGroupSets )
-
- $encoder.htmlEncode( $dataElementGroupSet.name ) |
-
+ |
+ $encoder.htmlEncode( $dataElementGroupSet.name ) |
+
|
- #if( $mark )
- #set( $mark = false )
- #else
- #set( $mark = true )
- #end
- #end
-
+ #end
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/indicator.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/indicator.vm 2009-11-03 13:11:45 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/indicator.vm 2010-02-04 08:29:27 +0000
@@ -50,24 +50,18 @@
$i18n.getString( "operations" ) |
- #set( $mark = false )
#foreach( $indicator in $indicators )
-
- $encoder.htmlEncode( $indicator.name ) |
+
+ $encoder.htmlEncode( $indicator.name ) |
#if ( $dataDictionaryMode == "extended" )
- |
+ |
#else
- |
+ |
#end
- |
- |
- |
+ |
+ |
+ |
- #if( $mark )
- #set( $mark = false )
- #else
- #set( $mark = true )
- #end
#end
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/indicatorGroup.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/indicatorGroup.vm 2009-11-02 13:07:49 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/indicatorGroup.vm 2010-02-04 08:29:27 +0000
@@ -20,20 +20,14 @@
$i18n.getString( "operations" ) |
- #set( $mark = false )
#foreach( $indicatorGroup in $indicatorGroups )
-
- $encoder.htmlEncode( $indicatorGroup.name ) |
- |
- |
- |
- |
+
+ $encoder.htmlEncode( $indicatorGroup.name ) |
+ |
+ |
+ |
+ |
- #if( $mark )
- #set( $mark = false )
- #else
- #set( $mark = true )
- #end
#end
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/indicatorGroupSet.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/indicatorGroupSet.vm 2009-11-04 06:39:59 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/indicatorGroupSet.vm 2010-02-04 08:29:27 +0000
@@ -17,25 +17,18 @@
$i18n.getString( "name" ) |
$i18n.getString( "operations" ) |
-
- #set( $mark = false )
+
#foreach( $indicatorGroupSet in $indicatorGroupSets )
-
- $encoder.htmlEncode( $indicatorGroupSet.name ) |
-
+ |
+ $encoder.htmlEncode( $indicatorGroupSet.name ) |
+
|
- #if( $mark )
- #set( $mark = false )
- #else
- #set( $mark = true )
- #end
- #end
-
+ #end
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/indicatorType.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/indicatorType.vm 2009-11-12 17:59:58 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/indicatorType.vm 2010-02-04 08:29:27 +0000
@@ -20,20 +20,14 @@
$i18n.getString( "operations" ) |
- #set( $mark = false )
#foreach( $indicatorType in $indicatorTypes )
-
- $encoder.htmlEncode( $indicatorType.name ) |
- |
- |
- |
- |
+
+ $encoder.htmlEncode( $indicatorType.name ) |
+ |
+ |
+ |
+ |
- #if( $mark )
- #set( $mark = false )
- #else
- #set( $mark = true )
- #end
#end
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/categoryCombo.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/categoryCombo.js 2009-10-20 12:49:32 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/categoryCombo.js 2010-02-04 08:29:27 +0000
@@ -21,12 +21,7 @@
function removeDataElementCategoryCombo( categoryComboId, categoryComboName )
{
- var result = window.confirm( i18n_confirm_delete + '\n\n' + categoryComboName );
-
- if ( result )
- {
- window.location.href = 'removeDataElementCategoryCombo.action?id=' + categoryComboId;
- }
+ removeItem( categoryComboId, categoryComboName, i18n_confirm_delete, 'removeDataElementCategoryCombo.action' );
}
// ----------------------------------------------------------------------
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/dataDictionary.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/dataDictionary.js 2009-03-03 16:46:36 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/dataDictionary.js 2010-02-04 08:29:27 +0000
@@ -43,12 +43,7 @@
function removeDataDictionary( dataDictionaryId, dataDictionaryName )
{
- var result = window.confirm( i18n_confirm_delete + '\n\n' + dataDictionaryName );
-
- if ( result )
- {
- window.location.href = 'removeDataDictionary.action?id=' + dataDictionaryId;
- }
+ removeItem( dataDictionaryId, dataDictionaryName, i18n_confirm_delete, 'removeDataDictionary.action' );
}
// -----------------------------------------------------------------------------
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/dataElementGroup.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/dataElementGroup.js 2010-02-03 16:07:25 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/dataElementGroup.js 2010-02-04 08:29:27 +0000
@@ -1,3 +1,4 @@
+
// -----------------------------------------------------------------------------
// View details
// -----------------------------------------------------------------------------
@@ -22,16 +23,6 @@
// Remove data element group
// -----------------------------------------------------------------------------
-/**
- * DOM modifications at page load.
- */
-$( document ).ready( function(){
-
-$( "table.listTable tbody tr:odd" ).addClass( "listAlternateRow" );
-$( "table.listTable tbody tr:even" ).addClass( "listRow" );
-
-});
-
function removeDataElementGroup( dataElementGroupId, dataElementGroupName )
{
removeItem( dataElementGroupId, dataElementGroupName, i18n_confirm_delete, "removeDataElementGroup.action" );
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/dataElementGroupSet.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/dataElementGroupSet.js 2009-11-04 06:39:59 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/dataElementGroupSet.js 2010-02-04 08:29:27 +0000
@@ -51,9 +51,8 @@
// -----------------------------------------------------------------------------
function deleteDataElementGroupSet( id ){
- if(window.confirm(i18n_confirm_delete)){
- window.location = "deleteDataElementGroupSet.action?id=" + id;
- }
+
+ deleteItem( id, "", i18n_confirm_delete, "deleteDataElementGroupSet.action" );
}
// -----------------------------------------------------------------------------
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/indicatorGroup.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/indicatorGroup.js 2009-03-03 16:46:36 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/indicatorGroup.js 2010-02-04 08:29:27 +0000
@@ -25,12 +25,7 @@
function removeIndicatorGroup( indicatorGroupId, indicatorGroupName )
{
- var result = window.confirm( i18n_confirm_delete + '\n\n' + indicatorGroupName );
-
- if ( result )
- {
- window.location.href = 'removeIndicatorGroup.action?id=' + indicatorGroupId;
- }
+ removeItem( indicatorGroupId, indicatorGroupName, i18n_confirm_delete, 'removeIndicatorGroup.action' );
}
// -----------------------------------------------------------------------------
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/indicatorGroupSet.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/indicatorGroupSet.js 2009-11-04 06:39:59 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/indicatorGroupSet.js 2010-02-04 08:29:27 +0000
@@ -50,9 +50,8 @@
// -----------------------------------------------------------------------------
function deleteIndicatorGroupSet( id ){
- if(window.confirm(i18n_confirm_delete)){
- window.location = "deleteIndicatorGroupSet.action?id=" + id;
- }
+
+ removeItem( id, "", i18n_confirm_delete, "deleteIndicatorGroupSet.action" );
}
// -----------------------------------------------------------------------------
=== removed file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/organisationUnitGroup.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/organisationUnitGroup.js 2009-10-26 15:39:29 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/organisationUnitGroup.js 1970-01-01 00:00:00 +0000
@@ -1,92 +0,0 @@
-
-// -----------------------------------------------------------------------------
-// View details
-// -----------------------------------------------------------------------------
-
-function showOrganisationUnitGroupDetails( unitId )
-{
- var request = new Request();
- request.setResponseTypeXML( 'organisationUnitGroup' );
- request.setCallbackSuccess( organisationUnitGroupReceived );
- request.send( 'getOrganisationUnitGroup.action?id=' + unitId );
-}
-
-function organisationUnitGroupReceived( unitGroupElement )
-{
- setFieldValue( 'nameField', getElementValue( unitGroupElement, 'name' ) );
- setFieldValue( 'memberCountField', getElementValue( unitGroupElement, 'memberCount' ) );
-
- showDetails();
-}
-
-// -----------------------------------------------------------------------------
-// Remove organisation unit group
-// -----------------------------------------------------------------------------
-
-function removeOrganisationUnitGroup( unitGroupId, unitGroupName )
-{
- var result = window.confirm( confirm_to_delete_org_unit_group + '\n\n' + unitGroupName );
-
- if ( result )
- {
- window.location.href = 'removeOrganisationUnitGroup.action?id=' + unitGroupId;
- }
-}
-
-// -----------------------------------------------------------------------------
-// Add organisation unit group
-// -----------------------------------------------------------------------------
-
-function validateAddOrganisationUnitGroup()
-{
- $.post("validateOrganisationUnitGroup.action",{
- name:$("#name").val()
- },function( message ){
- var messageElement = message.getElementsByTagName('message')[0];
- var type = messageElement.getAttribute( 'type' );
- var message = messageElement.firstChild.nodeValue;
-
- if ( type == 'success' )
- {
- document.forms['addOrganisationUnitGroupForm'].submit();
- }
- else if ( type == 'error' )
- {
- setMessage(message);
- }
- else if ( type == 'input' )
- {
- setMessage(message);
- }
- },'xml');
-}
-
-// -----------------------------------------------------------------------------
-// Update organisation unit group
-// -----------------------------------------------------------------------------
-
-function validateUpdateOrganisationUnitGroup()
-{
-
- $.post("validateOrganisationUnitGroup.action",{
- id:$("#id").val(),
- name:$("#name").val()
- },function( message ){
- var messageElement = message.getElementsByTagName('message')[0];
- var type = messageElement.getAttribute( 'type' );
- var message = messageElement.firstChild.nodeValue;
-
- if ( type == 'success' )
- {
- document.forms['updateOrganisationUnitGroupForm'].submit();
- }
- else if ( type == 'error' )
- {
- setMessage(message);
- }
- else if ( type == 'input' )
- {
- setMessage(message);
- }
- },'xml');
-}
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/multidimensional/category.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/multidimensional/category.vm 2009-11-12 17:59:58 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/multidimensional/category.vm 2010-02-04 08:29:27 +0000
@@ -20,20 +20,14 @@
- #set( $mark = false )
#foreach( $dataElementCategory in $dataElementCategories )
#if( $dataElementCategory.id != $defaultCategory.id )
-
- $encoder.htmlEncode( $dataElementCategory.name ) |
- |
- |
- |
+
+ $encoder.htmlEncode( $dataElementCategory.name ) |
+ |
+ |
+ |
- #if( $mark )
- #set( $mark = false )
- #else
- #set( $mark = true )
- #end
#end
#end
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/multidimensional/categoryCombo.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/multidimensional/categoryCombo.vm 2009-11-12 17:59:58 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/multidimensional/categoryCombo.vm 2010-02-04 08:29:27 +0000
@@ -20,20 +20,14 @@
- #set( $mark = false )
#foreach( $dataElementCategoryCombo in $dataElementCategoryCombos )
#if( $dataElementCategoryCombo.id != $defaultCombo.id )
-
- $encoder.htmlEncode( $dataElementCategoryCombo.name ) |
- |
- |
- |
+
+ $encoder.htmlEncode( $dataElementCategoryCombo.name ) |
+ |
+ |
+ |
- #if( $mark )
- #set( $mark = false )
- #else
- #set( $mark = true )
- #end
#end
#end