From 1939ce1c501235c12dd60ab6a02ede832bb28a13 Mon Sep 17 00:00:00 2001 From: Michael Lawrie Date: Fri, 1 Mar 2013 02:39:53 -0500 Subject: [PATCH] Fix IE8 compatability by replacing native trim() call with jquery equivalent --- app/assets/javascripts/s3_direct_upload.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/s3_direct_upload.js.coffee b/app/assets/javascripts/s3_direct_upload.js.coffee index 76f32b9..6589ff0 100644 --- a/app/assets/javascripts/s3_direct_upload.js.coffee +++ b/app/assets/javascripts/s3_direct_upload.js.coffee @@ -41,7 +41,7 @@ $.fn.S3Uploader = (options) -> file.unique_id = Math.random().toString(36).substr(2,16) unless settings.before_add and not settings.before_add(file) - data.context = $(tmpl("template-upload", file).trim()) if $('#template-upload').length > 0 + data.context = $($.trim(tmpl("template-upload", file))) if $('#template-upload').length > 0 $(data.context).appendTo(settings.progress_bar_target || $uploadForm) if settings.click_submit_target forms_for_submit.push data