Merge "Replace deprecated jQuery.browser with jQuery.client"

This commit is contained in:
jenkins-bot 2014-05-16 18:47:46 +00:00 committed by Gerrit Code Review
commit 9bbb293d00
2 changed files with 17 additions and 12 deletions

View file

@ -279,6 +279,10 @@ $wgResourceModules += array(
'scripts' => array(
'mmv/mmv.base.js',
),
'dependencies' => array(
'jquery.client',
),
),
'mmv.ui' => $wgMediaViewerResourceTemplate + array(

View file

@ -21,7 +21,8 @@
// We have to disable support for IE < 9 until this is fixed: https://bugzilla.wikimedia.org/show_bug.cgi?id=63303
// This can't be done with feature detection, as the error IE triggers in that situation can't be caught
isBrowserSupported : function () {
return ! ( $.browser.msie && parseFloat( $.browser.version ) < 9 );
var profile = $.client.profile();
return ! ( profile.name === 'msie' && profile.versionNumber < 9 );
}
};
}( mediaWiki, jQuery ) );