Skip to main content

Bug Tracker

Side navigation

#3222 closed feature (wontfix)

Opened August 05, 2008 04:37AM UTC

Closed August 05, 2008 02:56PM UTC

Last modified March 15, 2012 07:16PM UTC

Add $.browser.mobile to check for mobile browsers

Reported by: dalangalma Owned by:
Priority: minor Milestone: 1.3
Component: core Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:
Description

It's often useful to present reduced functionality (or just turn off a lot of JavaScript spiffiness) for mobile browsers. A $.browser.mobile flag would help out a lot.

Attachments (0)
Change History (1)

Changed August 05, 2008 02:56PM UTC by flesler comment:1

resolution: → wontfix
status: newclosed

Hi, we don't do any specialized code in the core, according to whether the browser is on a mobile or not.

This means the core doesn't need this sniffing, you can add it externally.

Something like:

  jQuery.browser.mobile = /mobile/i.test(navigator.userAgent);