Index: lams_central/conf/language/lams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_central/conf/language/lams/ApplicationResources.properties,v diff -u -r1.19 -r1.20 --- lams_central/conf/language/lams/ApplicationResources.properties 23 Jan 2008 02:13:46 -0000 1.19 +++ lams_central/conf/language/lams/ApplicationResources.properties 1 Feb 2008 07:11:27 -0000 1.20 @@ -77,6 +77,7 @@ msg.status.finished =This lesson has been finished or archived. msg.status.removed =This lesson has been removed. title.import.instruction =Please choose LAMS sequence to import. +title.import.error =Please choose file at first. title.export.choose.format =Choose export content format msg.export.choose.format.instruction =Please choose format which you want to export msg.export.choose.format.lams =LAMS Format Index: lams_central/conf/language/lams/ApplicationResources_en_AU.properties =================================================================== RCS file: /usr/local/cvsroot/lams_central/conf/language/lams/ApplicationResources_en_AU.properties,v diff -u -r1.19 -r1.20 --- lams_central/conf/language/lams/ApplicationResources_en_AU.properties 23 Jan 2008 02:13:46 -0000 1.19 +++ lams_central/conf/language/lams/ApplicationResources_en_AU.properties 1 Feb 2008 07:11:27 -0000 1.20 @@ -77,6 +77,7 @@ msg.status.finished =This lesson has been finished or archived. msg.status.removed =This lesson has been removed. title.import.instruction =Please choose LAMS sequence to import. +title.import.error =Please choose file at first. title.export.choose.format =Choose export content format msg.export.choose.format.instruction =Please choose format which you want to export msg.export.choose.format.lams =LAMS Format Index: lams_central/conf/language/rams/ApplicationResources.properties =================================================================== RCS file: /usr/local/cvsroot/lams_central/conf/language/rams/Attic/ApplicationResources.properties,v diff -u -r1.5 -r1.6 --- lams_central/conf/language/rams/ApplicationResources.properties 9 May 2007 05:55:31 -0000 1.5 +++ lams_central/conf/language/rams/ApplicationResources.properties 1 Feb 2008 07:11:26 -0000 1.6 @@ -95,6 +95,7 @@ title.import.result =Import tool content result title.import =Import tool content title.import.instruction =Please choose RAMS workflow to import. +title.import.error =Please choose file at first. title.export.loading =Export tool content loading label.ld.zip.file =Design import file msg.import.success =Design and activities imported successfully. Index: lams_central/conf/language/rams/ApplicationResources_en_AU.properties =================================================================== RCS file: /usr/local/cvsroot/lams_central/conf/language/rams/Attic/ApplicationResources_en_AU.properties,v diff -u -r1.4 -r1.5 --- lams_central/conf/language/rams/ApplicationResources_en_AU.properties 9 May 2007 05:55:31 -0000 1.4 +++ lams_central/conf/language/rams/ApplicationResources_en_AU.properties 1 Feb 2008 07:11:27 -0000 1.5 @@ -95,6 +95,7 @@ title.import.result =Import tool content result title.import =Import tool content title.import.instruction =Please choose RAMS workflow to import. +title.import.error =Please choose file at first. title.export.loading =Export tool content loading label.ld.zip.file =Design import file msg.import.success =Design and activities imported successfully. Index: lams_central/web/toolcontent/import.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/toolcontent/import.jsp,v diff -u -r1.13 -r1.14 --- lams_central/web/toolcontent/import.jsp 5 Jun 2007 05:53:07 -0000 1.13 +++ lams_central/web/toolcontent/import.jsp 1 Feb 2008 07:11:26 -0000 1.14 @@ -13,11 +13,20 @@ function closeWin(){ window.close(); } + + function verifyFilenameLength() { + if (document.getElementById("UPLOAD_FILE").value.length == 0) { + var msg = ""; + alert(msg); + return (false); + } + return (true); + } + -

@@ -35,8 +44,8 @@
" method="post" enctype="multipart/form-data">

- - " class="button" /> + + " class="button" onclick="javascript:if (!verifyFilenameLength()) {return false;} "/>