Skip to content

Commit

Permalink
Fix IE8 compatability by replacing native trim() call with jquery equ…
Browse files Browse the repository at this point in the history
…ivalent
  • Loading branch information
mlawrie committed Mar 1, 2013
1 parent 3227bd0 commit 1939ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/s3_direct_upload.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1939ce1

Please sign in to comment.