dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #00100
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 31: Added check to JavaScript, if import file field is empty
------------------------------------------------------------
revno: 31
committer: Saptarshi <sunbiz@xxxxxxxxx>
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.