← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2689: change:forward setMessage to setHeaderMessage in commons.js

 

------------------------------------------------------------
revno: 2689
committer: Tri <Tri@Tri-Laptop>
branch nick: dhis2
timestamp: Fri 2011-01-21 10:47:48 +0700
message:
  change:forward setMessage to setHeaderMessage in commons.js
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 02:26:00 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/commons.js	2011-01-21 03:47:48 +0000
@@ -433,11 +433,7 @@
  */
 function setMessage( message )
 {
-	if ( message && message != '' )
-	{
-		byId( 'message' ).innerHTML = message;
-		byId( 'message' ).style.display = 'block';
-	}
+	setHeaderMessage( message );
 }
 
 /**
@@ -455,7 +451,7 @@
  */
 function hideMessage()
 {
-	byId( 'message' ).style.display = 'none';
+	$( 'div#headerMessage' ).slideUp( 'fast' );
 }
 
 /**
@@ -827,7 +823,8 @@
 		buttonImageOnly: true,
 		constrainInput: true		
 	});
-		
+	s = jQuery( jQueryString );		
+	if( s.val()=='' ) s.val( getCurrentDate() );		
 }
 
 /**