------------------------------------------------------------
revno: 31
committer: Saptarshi <[email protected]>
branch nick: trunk
timestamp: Tue 2009-03-10 13:33:23 +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-09 22:33:48 +0000
+++ 
dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/javascript/import.js
    2009-03-10 08:03:23 +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.

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to