Skip to content

Commit b713936

Browse files
author
Tom Boutell
committed
Merge pull request #43 from smoorhouse11/master
IE 8 string compatibility
2 parents b048ecf + 28f6f51 commit b713936

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Resources/public/js/FileUploader.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ function PunkAveFileUploader(options)
44
uploadUrl = options.uploadUrl,
55
viewUrl = options.viewUrl,
66
$el = $(options.el),
7-
uploaderTemplate = _.template($('#file-uploader-template').html().trim());
7+
uploaderTemplate = _.template($.trim($('#file-uploader-template').html()));
88
$el.html(uploaderTemplate({}));
99

10-
var fileTemplate = _.template($('#file-uploader-file-template').html().trim()),
10+
var fileTemplate = _.template($.trim($('#file-uploader-file-template').html())),
1111
editor = $el.find('[data-files="1"]'),
1212
thumbnails = $el.find('[data-thumbnails="1"]');
1313

0 commit comments

Comments
 (0)