norcross / gravity-tooltips

Adds a custom field to each form element for tooltips
MIT License
74 stars 20 forks source link

How to support jQuery >1.9.0 #11

Closed mikeploeger closed 8 years ago

mikeploeger commented 9 years ago

The current version does not work with jQuery >1.9.0, because $.browser was removed from jQuery lib: http://jquery.com/upgrade-guide/1.9/#jquery-browser-removed

Fix:

I have replaced the following: OLD: f.browser.msie NEW: navigator.appName == 'Microsoft Internet Explorer'

OLD: parseInt(f.browser.version.charAt(0)) === 6) NEW: navigator.userAgent.match(/msie 6/i))

Otherwise the plugin does not work and outputs: f.browser is undefined

norcross commented 9 years ago

can you update both the minified and the non-minified versions of the qtip library?