Index: lams_central/web/toolcontent/import.jsp =================================================================== diff -u -r64938df458cbab9999f9a826ef2902d061648d7d -r65af7e4e994ef7fd044c12ca992098f698b17ee9 --- lams_central/web/toolcontent/import.jsp (.../import.jsp) (revision 64938df458cbab9999f9a826ef2902d061648d7d) +++ lams_central/web/toolcontent/import.jsp (.../import.jsp) (revision 65af7e4e994ef7fd044c12ca992098f698b17ee9) @@ -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;} "/>