|
Post by Admin on Nov 6, 2012 13:33:11 GMT -5
<script type="text/javascript"> <!-- // Limit attachments to images...
if(document.postForm && document.postForm.pb_attachment) { document.postForm.pb_attachment.onchange = function() { var checkFile = document.postForm.pb_attachment.value; if(checkFile.length > 1 && !checkFile.match(/\.(jpe[hr]Admin says: g|png|gif|bmp)$/)) { alert('Please restrict attachments to image files.\n\nThank you.'); document.postForm.pb_attachment.value = ''; if(!navigator.userAgent.match(/(WebKit|Gecko)/)) { document.postForm.nextaction.nextSibling.disabled = 'disabled'; }} else { document.postForm.nextaction.nextSibling.disabled = ''; }}} // --> </script>
|
|