r58699 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58698‎ | r58699 | r58700 >
Date:11:28, 7 November 2009
Author:dale
Status:deferred
Tags:
Comment:
* fixed selector
Modified paths:
  • /trunk/phase3/js2/remoteMwEmbed.js (modified) (history)

Diff [purge]

Index: trunk/phase3/js2/remoteMwEmbed.js
@@ -91,16 +91,16 @@
9292 // Parsed values:
9393 var src = '';
9494 var duration = '';
95 - var wikiTitleKey = $j( '#'+vidId + ' a').attr('href').replace('\/wiki\/', '');
 95+ var wikiTitleKey = $j( '#'+vidId + ' img').attr('alt').replace(' ', '_');
9696
9797 var re = new RegExp( /videoUrl(":?\s*)*([^&]*)/ );
98 - src = re.exec( $j( '#'+vidId).html() )[2];
 98+ src = re.exec( $j( '#'+vidId ).html() )[2];
9999
100100 var re = new RegExp( /length(":?\s*)*([^&]*)/ );
101 - duration = re.exec( $j( '#'+vidId).html() )[2];
 101+ duration = re.exec( $j( '#'+vidId ).html() )[2];
102102
103103 var re = new RegExp( /offset(":?\s*)*([^&]*)/ );
104 - offset = re.exec( $j( '#'+vidId).html() )[2];
 104+ offset = re.exec( $j( '#'+vidId ).html() )[2];
105105 var offset_attr = offset ? 'startOffset="' + offset + '"' : '';
106106
107107 if( src ) {

Status & tagging log