← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2039: Fixed bug show warning message when removing items.

 

------------------------------------------------------------
revno: 2039
committer: Hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: trunk
timestamp: Thu 2010-09-02 00:57:22 +0700
message:
  Fixed bug show warning message when removing items.
  Minor fixed in setFieldValue( fieldId, value ) in commons.js
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/commons.js


--
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/util/commons.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/commons.js	2010-09-01 16:55:23 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/commons.js	2010-09-01 17:57:22 +0000
@@ -395,7 +395,7 @@
  */
 function setFieldValue( fieldId, value )
 {
-    jQuery("#" + fieldId).val( value );
+    jQuery("#" + fieldId).html( value );
 }
 
 /**
@@ -751,7 +751,7 @@
     	    	}
     	    	else if ( json.response == "error" )
     	    	{
-    	    		setFieldValue( 'warningArea', json.message );
+    	    		setFieldValue( 'warningField', json.message );
         
                     showWarning();
     	    	}