KartikMistry has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/230101

Change subject: Use .attr() to set the resource attribute of image, while 
adapting
......................................................................

Use .attr() to set the resource attribute of image, while adapting

Bug: T108302
Change-Id: Ic427e91928d95502a71e089b58f4c1c1673766e0
(cherry picked from commit 308cdea21198c71df0c3a880264d184d2edeb171)
---
M modules/tools/ext.cx.tools.images.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/01/230101/1

diff --git a/modules/tools/ext.cx.tools.images.js 
b/modules/tools/ext.cx.tools.images.js
index 10c597d..08a7190 100644
--- a/modules/tools/ext.cx.tools.images.js
+++ b/modules/tools/ext.cx.tools.images.js
@@ -113,7 +113,7 @@
                                        if ( resource ) {
                                                resource = resource.replace( 
/(\.\/)*(.+)(:)/g,
                                                        '$1' + 
translatedNamespace + '$3' );
-                                               $image.prop( {
+                                               $image.attr( {
                                                        resource: resource,
                                                        id: 'cx' + 
$sourceImage.prop( 'id' )
                                                } );

-- 
To view, visit https://gerrit.wikimedia.org/r/230101
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic427e91928d95502a71e089b58f4c1c1673766e0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: wmf/1.26wmf17
Gerrit-Owner: KartikMistry <kartik.mis...@gmail.com>
Gerrit-Reviewer: Santhosh <santhosh.thottin...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to