r106216 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106215‎ | r106216 | r106217 >
Date:18:16, 14 December 2011
Author:yonishostak
Status:ok
Tags:
Comment:
AFTv5: fix bug 32995 - disable on mobile platforms and MSIE 6
Modified paths:
  • /trunk/extensions/ArticleFeedbackv5/modules/ext.articleFeedbackv5/ext.articleFeedbackv5.startup.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleFeedbackv5/modules/ext.articleFeedbackv5/ext.articleFeedbackv5.startup.js
@@ -16,6 +16,18 @@
1717 /*** Main entry point ***/
1818 jQuery( function( $ ) {
1919
 20+ var ua = navigator.appVersion.toLowerCase();
 21+ // Rule out MSIE 6, iPhone, iPod, iPad, Android
 22+ if(
 23+ (ua.indexOf( 'msie 6' ) != -1) ||
 24+ (ua.indexOf( 'android' ) != -1) ||
 25+ (ua.indexOf( 'iphone' ) != -1) ||
 26+ (ua.indexOf( 'ipod' ) != -1 ) ||
 27+ (ua.indexOf( 'ipad' ) != -1)
 28+ ) {
 29+ return;
 30+ }
 31+
2032 // Load check, is this page ArticleFeedbackv5-enabled ?
2133 // Keep in sync with ApiArticleFeedbackv5.php
2234 if (

Status & tagging log