Index: branches/new-upload/phase3/js2/mwEmbed/libClipEdit/mvClipEdit.js |
— | — | @@ -177,6 +177,14 @@ |
178 | 178 | '</tr>'; |
179 | 179 | } |
180 | 180 | } |
| 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 | + } |
181 | 189 | o+= '<tr>'+ |
182 | 190 | '<td colspan="2"><b>'+gM('mv_other_properties')+'</b></td>'+ |
183 | 191 | '</tr>'+ |
— | — | @@ -184,9 +192,9 @@ |
185 | 193 | '<td>' + |
186 | 194 | gM('mv_resource_page') + |
187 | 195 | '</td>' + |
188 | | - '<td><a href="' + wgArticlePath.replace(/\$1/, _this.rObj.uri ) +'" '+ |
| 196 | + '<td><a href="' + res_src +'" '+ |
189 | 197 | ' target="new">'+ |
190 | | - _this.rObj.uri + '</a>'+ |
| 198 | + res_title + '</a>'+ |
191 | 199 | '</td>'+ |
192 | 200 | '</tr>'; |
193 | 201 | o+='</table>'; |