Permalink
Browse files

Remove old IE8 encoding hack

  • Loading branch information...
1 parent 78032af commit 7db1500c6890fe1dcd298de94c18a49e8a8b8911 @josh committed May 14, 2013
Showing with 0 additions and 16 deletions.
  1. +0 −15 ie_utf8.coffee
  2. +0 −1 index.js
View
15 ie_utf8.coffee
@@ -1,15 +0,0 @@
-# Old IE UTF-8 Fix
-#
-#= require ./prepare
-#
-# Targets IE 8 and below.
-#
-# Inserts a hidden field with a UTF-8 character to force the forms
-# encoding to be UTF-8 regardless of the browsers encoding setting.
-#
-# See http://intertwingly.net/blog/2010/07/29/Rails-and-Snowmen
-if (m = navigator.userAgent.match /MSIE ([\w]+)/) and parseInt(m[1]) <= 8
- $(document).on 'submit:prepare', 'form', ->
- if $(this).find('input[name=utf8]').length is 0
- $(this).prepend '<input type=hidden name=utf8 value=✓>'
- return
View
1 index.js
@@ -11,7 +11,6 @@
//= require ./accept
//= require ./confirm
//= require ./csrf
-//= require ./ie_utf8
//= require ./disable
//= require ./method
//= require ./remote

0 comments on commit 7db1500

Please sign in to comment.