JQuery plugin fails when using JQuery 1.9 or later

Created on 23 August 2016, over 8 years ago
Updated 14 May 2024, 6 months ago

I'm running with JQuery 1.10, and while the module installs and activates, the mask itself doesn't appear on the input field. The console reports this:

TypeError: $.browser is undefined

... at .../sites/all/libraries/maskedinput/jquery.maskedinput-1.3.js?occ8kv Line 8

That code is:

(function($) {
	var pasteEventName = ($.browser.msie ? 'paste' : 'input') + ".mask";

Apparently, $.browser was removed from jQuery 1.9. My javascript isn't good enough to suggest a fix -- do you have a version of the plugin that works with later versions of jQuery?

Thanks!

🐛 Bug report
Status

Closed: duplicate

Version

2.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024