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;} "/>