Skip to content

Commit

Permalink
Use "text/x-tmpl" instead of "text/html" as type for the template scr…
Browse files Browse the repository at this point in the history
…ipt sections.
  • Loading branch information
blueimp committed Feb 14, 2012
1 parent 94d6df8 commit ea80aec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions index.html
@@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<!--
/*
* jQuery File Upload Plugin Demo 6.4
* jQuery File Upload Plugin Demo 6.4.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
Expand Down Expand Up @@ -137,7 +137,7 @@ <h3 class="modal-title"></h3>
};
</script>
<!-- The template to display files available for upload -->
<script id="template-upload" type="text/html">
<script id="template-upload" type="text/x-tmpl">
{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %}
<tr class="template-upload fade">
<td class="preview"><span class="fade"></span></td>
Expand Down Expand Up @@ -166,7 +166,7 @@ <h3 class="modal-title"></h3>
{% } %}
</script>
<!-- The template to display files available for download -->
<script id="template-download" type="text/html">
<script id="template-download" type="text/x-tmpl">
{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %}
<tr class="template-download fade">
{% if (file.error) { %}
Expand Down
6 changes: 3 additions & 3 deletions test/index.html
@@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<!--
/*
* jQuery File Upload Plugin Test 6.4
* jQuery File Upload Plugin Test 6.4.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
Expand Down Expand Up @@ -71,7 +71,7 @@ <h2 id="qunit-userAgent"></h2>
};
</script>
<!-- The template to display files available for upload -->
<script id="template-upload" type="text/html">
<script id="template-upload" type="text/x-tmpl">
{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %}
<tr class="template-upload">
<td class="preview"><span class=""></span></td>
Expand Down Expand Up @@ -100,7 +100,7 @@ <h2 id="qunit-userAgent"></h2>
{% } %}
</script>
<!-- The template to display files available for download -->
<script id="template-download" type="text/html">
<script id="template-download" type="text/x-tmpl">
{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %}
<tr class="template-download">
{% if (file.error) { %}
Expand Down

0 comments on commit ea80aec

Please sign in to comment.