From 1dcf66744882b5526f38de50a2d81b0bec7ade53 Mon Sep 17 00:00:00 2001 From: eitan Date: Sat, 20 Sep 2014 20:57:10 -0400 Subject: [PATCH] replaced jQuery inArray with an array search compatiable with IE8 --- includes/DefaultSettings.php | 2 +- .../omnitureOnPage/resources/omnitureOnPage.js | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index fa9762a15d..87af948fcb 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -12,7 +12,7 @@ $wgBaseMwEmbedPath = realpath( dirname( __FILE__ ) . '/../' ); // The version of the library: -$wgMwEmbedVersion = '2.18.4'; +$wgMwEmbedVersion = '2.18.4.1'; // Default HTTP protocol from GET or SERVER parameters if( isset($_GET['protocol']) ) { diff --git a/kWidget/onPagePlugins/omnitureOnPage/resources/omnitureOnPage.js b/kWidget/onPagePlugins/omnitureOnPage/resources/omnitureOnPage.js index 79974c68bb..77cf0f80fe 100644 --- a/kWidget/onPagePlugins/omnitureOnPage/resources/omnitureOnPage.js +++ b/kWidget/onPagePlugins/omnitureOnPage/resources/omnitureOnPage.js @@ -237,7 +237,14 @@ kWidget.addReadyCallback( function( playerId ){ s.Media.trackWhilePlaying = true; s.Media.trackMilestones="25,50,75"; s.Media.monitor = function ( s, media ) { - if ( $.inArray( media.event, trackEvents ) !== -1 ) { + var inArray = false; + for (var i = 0; i < trackEvents.length; i++){ + if(media.event === trackEvents[i]){ + inArray = true; + break; + } + } + if( inArray ) { trackMediaWithExtraEvars(); } if( media.event == 'CLOSE' ){