=== 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 2013-10-08 17:16:47 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js 2013-11-20 14:12:58 +0000 @@ -1885,3 +1885,26 @@ } } ); } + + +//----------------------------------------------------------------------------- +// Symbol +//----------------------------------------------------------------------------- + +function openSymbolDialog() +{ + $( "#symbolDiv" ).dialog( { + height: 294, + width: 250, + modal: true, + resizable: false, + title: "Select symbol" + } ); +} + +function selectSymbol( img ) +{ + $( "#symbol" ).val( img ); + $( "#symbolDiv" ).dialog( "close" ); + $( "#symbolImg" ).attr( "src", "../images/orgunitgroup/" + img ).show(); +} === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/organisationUnitGroup.js' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/organisationUnitGroup.js 2013-03-01 05:14:56 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/javascript/organisationUnitGroup.js 2013-11-20 14:12:58 +0000 @@ -24,25 +24,3 @@ { removeItem( unitGroupId, unitGroupName, confirm_to_delete_org_unit_group, 'removeOrganisationUnitGroup.action' ); } - -//----------------------------------------------------------------------------- -//Symbol -//----------------------------------------------------------------------------- - -function openSymbolDialog() -{ - $( "#symbolDiv" ).dialog( { - height: 294, - width: 250, - modal: true, - resizable: false, - title: "Select symbol" - } ); -} - -function selectSymbol( img ) -{ - $( "#symbol" ).val( img ); - $( "#symbolDiv" ).dialog( "close" ); - $( "#symbolImg" ).attr( "src", "../images/orgunitgroup/" + img ).show(); -} \ No newline at end of file