← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2260: Added onchange event for finding orgunit

 

------------------------------------------------------------
revno: 2260
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2010-12-02 15:48:53 +0100
message:
  Added onchange event for finding orgunit
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/orgunittreesearch.vm
  dhis-2/dhis-web/dhis-web-commons/src/main/resources/i18n_global.properties


--
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/ouwt/orgunittreesearch.vm'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/orgunittreesearch.vm	2010-11-30 08:54:17 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/orgunittreesearch.vm	2010-12-02 14:48:53 +0000
@@ -1,9 +1,8 @@
 
 <img id="searchIcon" src="../images/search.png" style="cursor: pointer" title="$i18n.getString( 'locate_organisation_unit_by_code_or_name' )">
-<span id="searchSpan" style="display:none"><input type="text" id="searchField" name="key" style="width:130px"><input type="button" value="Find" onclick="selection.findByCode()"></span>
+<span id="searchSpan" style="display:none"><input type="text" id="searchField" name="key" style="width:130px" onchange="selection.findByCode()"><input type="button" value="Find" onclick="selection.findByCode()"></span>
 
 <script>
-	
 $(document).ready(function(){
 	$("#searchIcon").click(function(){
 		$("#searchSpan").toggle();
@@ -11,6 +10,7 @@
 	});
 });
 
+var i18n_find = '$encoder.jsEscape( $i18n.getString( "find" ) , "'")';
 </script>
 
 <div id="orgUnitTreeContainer">

=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/resources/i18n_global.properties'
--- dhis-2/dhis-web/dhis-web-commons/src/main/resources/i18n_global.properties	2010-12-02 09:25:44 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/resources/i18n_global.properties	2010-12-02 14:48:53 +0000
@@ -390,7 +390,7 @@
 filter_by_name	= Filter by name
 filter			= Filter
 clear			= Clear
-
+find			= Find
 delete_success = Object deleted
 process = Processing...