r103722 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103721‎ | r103722 | r103723 >
Date:02:59, 20 November 2011
Author:dale
Status:ok
Tags:
Comment:
add isIE9 to mediaWiki.client
Modified paths:
  • /trunk/extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport/mediawiki/mediawiki.client.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport/mediawiki/mediawiki.client.js
@@ -12,7 +12,9 @@
1313 mw.isIphone = function(){
1414 return ( navigator.userAgent.indexOf('iPhone') != -1 && ! mw.isIpad() );
1515 };
16 -
 16+ mw.isIE9 = function(){
 17+ return (/msie 9/.test(navigator.userAgent.toLowerCase()));
 18+ }
1719 // Uses hack described at:
1820 // http://www.bdoran.co.uk/2010/07/19/detecting-the-iphone4-and-resolution-with-javascript-or-php/
1921 mw.isIphone4 = function(){

Status & tagging log