Skip to content

Commit

Permalink
Merge pull request #1388 from koenpunt/browser-support
Browse files Browse the repository at this point in the history
Disable Chosen on iPhone / iPod and Android mobile devices by default
  • Loading branch information
pfiller committed Jul 24, 2013
2 parents b7f5f74 + 11d7112 commit 6638dd7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion coffee/lib/abstract-chosen.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ class AbstractChosen

@browser_is_supported: ->
if window.navigator.appName == "Microsoft Internet Explorer"
return null isnt document.documentMode >= 8
return document.documentMode >= 8
if /iP(od|hone)/i.test(window.navigator.userAgent)
return false
if /Android/i.test(window.navigator.userAgent)
return false if /Mobile/i.test(window.navigator.userAgent)
return true

@default_multiple_text: "Select Some Options"
Expand Down

0 comments on commit 6638dd7

Please sign in to comment.