summaryrefslogtreecommitdiffstats
path: root/application/views/file
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@server-speed.net>2011-05-18 21:24:24 +0200
committerFlorian Pritz <bluewind@server-speed.net>2011-05-18 21:24:24 +0200
commit2ffbe974d2a51dd7051b3025151fcf0bfaaab6c3 (patch)
tree600f0b9f33050e8161995524edfa773e51328ff9 /application/views/file
parent275e4687b310751365e1654483f5336c5c43828e (diff)
add CDATA to javascript
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
Diffstat (limited to 'application/views/file')
-rw-r--r--application/views/file/upload_form.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/application/views/file/upload_form.php b/application/views/file/upload_form.php
index a83fcccd4..1f537da48 100644
--- a/application/views/file/upload_form.php
+++ b/application/views/file/upload_form.php
@@ -7,6 +7,7 @@
</p>
</form>
<script type="text/javascript">
+ /* <![CDATA[ */
// check file size before uploading if browser support html5
if (window.File && window.FileList) {
function checkFileUpload(evt) {
@@ -22,6 +23,7 @@
document.getElementById('file').addEventListener('change', checkFileUpload, false);
}
+ /* ]]> */
</script>
<p>Pasting text directly has been disabled due to extensive bot problems. Please use the file upload instead.</p>
<?php if (false): ?>