Set href attribute of newly inserted image to image title

I'm not sure if that's the long term solution, however for now it fixes bug 49844 and bug 49848.

Change-Id: I75dbbfdd248a6f5696252ef3a2d7ca6ede0fa156
This commit is contained in:
Inez Korczyński 2013-06-25 15:09:09 -07:00
parent 8a28dbf48b
commit 537e431466

View file

@ -55,7 +55,8 @@ ve.ui.MWMediaInsertDialog.prototype.onClose = function ( action ) {
'attributes': {
'type': 'thumb',
'align': 'right',
'href': info.descriptionurl,
//'href': info.descriptionurl,
'href': './' + this.item.title,
'src': info.thumburl,
'width': info.thumbwidth,
'height': info.thumbheight,