Add resource attribute to newly created images

Bug: 49596
Change-Id: Ifbde0f5a4c8eb01df7b429abbb8ab0d4431c1c6f
This commit is contained in:
Ed Sanders 2013-06-19 21:43:30 +01:00 committed by Jforrester
parent 0ee7f9a5ca
commit 8d2ba6effe

View file

@ -59,7 +59,8 @@ ve.ui.MWMediaInsertDialog.prototype.onClose = function ( action ) {
'href': info.descriptionurl, 'href': info.descriptionurl,
'src': info.thumburl, 'src': info.thumburl,
'width': info.thumbwidth, 'width': info.thumbwidth,
'height': info.thumbheight 'height': info.thumbheight,
'resource': './' + this.item.title
} }
}, },
{ 'type': '/mwBlockImage' } { 'type': '/mwBlockImage' }