Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove check for "Mobile" on android devices #2468

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions coffee/lib/abstract-chosen.coffee
Expand Up @@ -245,7 +245,7 @@ class AbstractChosen
when 27
this.results_hide() if @results_showing
return true
when 9, 38, 40, 16, 91, 17
when 9, 38, 40, 16, 91, 17, 18
# don't do anything on these keys
else this.results_search()

Expand Down Expand Up @@ -282,10 +282,10 @@ class AbstractChosen
# class methods and variables ============================================================

@browser_is_supported: ->
if /iP(od|hone)/i.test(window.navigator.userAgent)
if /iPad|iPhone|iPod/i.test(window.navigator.userAgent)
return false
if /Android/i.test(window.navigator.userAgent)
return false if /Mobile/i.test(window.navigator.userAgent)
return false
if /IEMobile/i.test(window.navigator.userAgent)
return false
if /Windows Phone/i.test(window.navigator.userAgent)
Expand Down