Bug Tracker

Ticket #3222 (closed feature: wontfix)

Opened 4 months ago

Last modified 4 months ago

Add $.browser.mobile to check for mobile browsers

Reported by: dalangalma Assigned to: anonymous
Type: feature Priority: minor
Milestone: 1.3 Component: core
Version: 1.2.6 Keywords:
Cc: Needs: Patch

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

Change History

Changed 4 months ago by flesler

  • status changed from new to closed
  • resolution set to wontfix

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);
Note: See TracTickets for help on using tickets.