Skip to content

Commit ea80aec

Browse files
committed
Use "text/x-tmpl" instead of "text/html" as type for the template script sections.
1 parent 94d6df8 commit ea80aec

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML>
22
<!--
33
/*
4-
* jQuery File Upload Plugin Demo 6.4
4+
* jQuery File Upload Plugin Demo 6.4.1
55
* https://github.com/blueimp/jQuery-File-Upload
66
*
77
* Copyright 2010, Sebastian Tschan
@@ -137,7 +137,7 @@ <h3 class="modal-title"></h3>
137137
};
138138
</script>
139139
<!-- The template to display files available for upload -->
140-
<script id="template-upload" type="text/html">
140+
<script id="template-upload" type="text/x-tmpl">
141141
{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %}
142142
<tr class="template-upload fade">
143143
<td class="preview"><span class="fade"></span></td>
@@ -166,7 +166,7 @@ <h3 class="modal-title"></h3>
166166
{% } %}
167167
</script>
168168
<!-- The template to display files available for download -->
169-
<script id="template-download" type="text/html">
169+
<script id="template-download" type="text/x-tmpl">
170170
{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %}
171171
<tr class="template-download fade">
172172
{% if (file.error) { %}

test/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML>
22
<!--
33
/*
4-
* jQuery File Upload Plugin Test 6.4
4+
* jQuery File Upload Plugin Test 6.4.1
55
* https://github.com/blueimp/jQuery-File-Upload
66
*
77
* Copyright 2010, Sebastian Tschan
@@ -71,7 +71,7 @@ <h2 id="qunit-userAgent"></h2>
7171
};
7272
</script>
7373
<!-- The template to display files available for upload -->
74-
<script id="template-upload" type="text/html">
74+
<script id="template-upload" type="text/x-tmpl">
7575
{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %}
7676
<tr class="template-upload">
7777
<td class="preview"><span class=""></span></td>
@@ -100,7 +100,7 @@ <h2 id="qunit-userAgent"></h2>
100100
{% } %}
101101
</script>
102102
<!-- The template to display files available for download -->
103-
<script id="template-download" type="text/html">
103+
<script id="template-download" type="text/x-tmpl">
104104
{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %}
105105
<tr class="template-download">
106106
{% if (file.error) { %}

0 commit comments

Comments
 (0)