← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2700: Reverted r2689

 

------------------------------------------------------------
revno: 2700
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2011-01-21 11:42:03 +0100
message:
  Reverted r2689
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/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/javascripts/commons.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js	2011-01-21 03:47:48 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js	2011-01-21 10:42:03 +0000
@@ -433,7 +433,11 @@
  */
 function setMessage( message )
 {
-	setHeaderMessage( message );
+	if ( message && message != '' )
+	{
+		byId( 'message' ).innerHTML = message;
+		byId( 'message' ).style.display = 'block';
+	}
 }
 
 /**
@@ -451,7 +455,7 @@
  */
 function hideMessage()
 {
-	$( 'div#headerMessage' ).slideUp( 'fast' );
+	byId( 'message' ).style.display = 'none';
 }
 
 /**
@@ -823,8 +827,7 @@
 		buttonImageOnly: true,
 		constrainInput: true		
 	});
-	s = jQuery( jQueryString );		
-	if( s.val()=='' ) s.val( getCurrentDate() );		
+		
 }
 
 /**