Return to lonpdfupload.pm CVS log | Up to [LON-CAPA] / loncom / interface |
version 1.20, 2010/03/22 15:39:37 | version 1.21, 2011/11/02 15:14:21 |
---|---|
Line 130 sub get_javascripts() { | Line 130 sub get_javascripts() { |
// <![CDATA[ | // <![CDATA[ |
function checkFilename(form) { | function checkFilename(form) { |
var fileExt = form.file.value; | var fileExt = form.file.value; |
fileExt = fileExt.match(/[.]pdf\$/g); | fileExt = fileExt.match(/[.]pdf\$/gi); |
if(fileExt) { | if(fileExt) { |
return true; | return true; |
} | } |