jenkins-bot has submitted this change and it was merged.

Change subject: Minor renaming of event name and a variable name
......................................................................


Minor renaming of event name and a variable name

Change-Id: I5b00976235c50bf0b6776d4fdefe51139d320716
---
M modules/source/ext.cx.source.js
M modules/translation/ext.cx.translation.js
2 files changed, 6 insertions(+), 6 deletions(-)

Approvals:
  KartikMistry: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/source/ext.cx.source.js b/modules/source/ext.cx.source.js
index b68779a..6d39846 100644
--- a/modules/source/ext.cx.source.js
+++ b/modules/source/ext.cx.source.js
@@ -68,7 +68,7 @@
 
        ContentTranslationSource.prototype.listen = function () {
                this.$container.find( '.cx-column__content' ).on( 'click', 
function () {
-                       mw.hook( 'mw.cx.addContent' ).fire( $( this ).html() );
+                       mw.hook( 'mw.cx.translation.add' ).fire( $( this 
).html() );
                } );
        };
 
diff --git a/modules/translation/ext.cx.translation.js 
b/modules/translation/ext.cx.translation.js
index 18c65cf..07946f1 100644
--- a/modules/translation/ext.cx.translation.js
+++ b/modules/translation/ext.cx.translation.js
@@ -19,12 +19,12 @@
        function ContentTranslationEditor( element, options ) {
                this.$container = $( element );
                this.options = $.extend( true, {}, $.fn.cxTranslation.defaults, 
options );
-               this.lang = '';
+               this.language = '';
                this.init();
        }
 
        ContentTranslationEditor.prototype.init = function () {
-               this.lang = new mw.Uri().query.lang || '';
+               this.language = new mw.Uri().query.lang || '';
                this.render();
                this.listen();
        };
@@ -34,8 +34,8 @@
 
                if ( this.lang ) {
                        this.$container.prop( {
-                               lang: this.lang,
-                               dir: $.uls.data.getDir( this.lang )
+                               lang: this.language,
+                               dir: $.uls.data.getDir( this.language )
                        } );
                }
 
@@ -54,7 +54,7 @@
        };
 
        ContentTranslationEditor.prototype.listen = function () {
-               mw.hook( 'mw.cx.addContent' ).add( $.proxy( this.update, this ) 
);
+               mw.hook(  'mw.cx.translation.add' ).add( $.proxy( this.update, 
this ) );
        };
 
        ContentTranslationEditor.prototype.update = function ( data ) {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I5b00976235c50bf0b6776d4fdefe51139d320716
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com>
Gerrit-Reviewer: KartikMistry <kartik.mis...@gmail.com>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to