← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15: Added check to JavaScript, if import file field is empty

 

------------------------------------------------------------
revno: 15
committer: Saptarshi <sunbiz@xxxxxxxxx>
branch nick: trunk
timestamp: Mon 2009-03-09 17:56:08 +0530
message:
  Added check to JavaScript, if import file field is empty
modified:
  dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/javascript/import.js

=== modified file 'dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/javascript/import.js'
--- dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/javascript/import.js	2009-03-03 16:46:36 +0000
+++ dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/javascript/import.js	2009-03-09 12:26:08 +0000
@@ -5,9 +5,10 @@
 
 function submitImportForm()
 {
-	setMessage( i18n_importing );
-	
-	document.getElementById( "importForm" ).submit();
+	if(document.getElementById( "importForm" ).value != undefined){
+		setMessage( i18n_importing );
+		document.getElementById( "importForm" ).submit();
+	}
 }
 
 function showAdvancedOptions()



--

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.