r51773 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51772‎ | r51773 | r51774 >
Date:00:09, 12 June 2009
Author:dale
Status:deferred
Tags:
Comment:
some stand-alone sequencer fixes.
Modified paths:
  • /branches/new-upload/phase3/js2/mwEmbed/libClipEdit/mvClipEdit.js (modified) (history)

Diff [purge]

Index: branches/new-upload/phase3/js2/mwEmbed/libClipEdit/mvClipEdit.js
@@ -177,6 +177,14 @@
178178 '</tr>';
179179 }
180180 }
 181+ if(typeof wgArticlePath != 'undefined' ){
 182+ var res_src = wgArticlePath.replace(/\$1/, _this.rObj.uri );
 183+ var res_title = _this.rObj.uri;
 184+ }else{
 185+ //var res_page =
 186+ var res_src = _this.rObj.src;
 187+ var res_title = parseUri(_this.rObj.src).file;
 188+ }
181189 o+= '<tr>'+
182190 '<td colspan="2"><b>'+gM('mv_other_properties')+'</b></td>'+
183191 '</tr>'+
@@ -184,9 +192,9 @@
185193 '<td>' +
186194 gM('mv_resource_page') +
187195 '</td>' +
188 - '<td><a href="' + wgArticlePath.replace(/\$1/, _this.rObj.uri ) +'" '+
 196+ '<td><a href="' + res_src +'" '+
189197 ' target="new">'+
190 - _this.rObj.uri + '</a>'+
 198+ res_title + '</a>'+
191199 '</td>'+
192200 '</tr>';
193201 o+='</table>';

Status & tagging log