mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Gallery image: Use thumbUrl if src is not set (new images)"
This commit is contained in:
commit
e2ecb537e9
|
@ -991,7 +991,9 @@ ve.ui.MWGalleryDialog.prototype.insertOrUpdateNode = function () {
|
|||
// Use original null/empty value
|
||||
galleryItem.originalAltText :
|
||||
galleryItem.altText,
|
||||
src: galleryItem.src,
|
||||
// For existing images use `src` to avoid triggering a diff if the
|
||||
// thumbnail size changes. For new images we have to use `thumbUrl` (T310623).
|
||||
src: galleryItem.src || galleryItem.thumbUrl,
|
||||
height: size.height,
|
||||
width: size.width,
|
||||
tagName: galleryItem.tagName,
|
||||
|
|
Loading…
Reference in a new issue