jenkins-bot has submitted this change and it was merged. Change subject: Introduce onReady callback option to translate editor ......................................................................
Introduce onReady callback option to translate editor Can be used for any kind of UI customization Change-Id: Ifdac69e82fc270412158f66da48709197873e139 --- M resources/js/ext.translate.editor.js 1 file changed, 4 insertions(+), 0 deletions(-) Approvals: Amire80: Looks good to me, approved jenkins-bot: Verified Objections: Nikerabbit: There's a problem with this change, please improve diff --git a/resources/js/ext.translate.editor.js b/resources/js/ext.translate.editor.js index 1b4bb64..dd79935 100644 --- a/resources/js/ext.translate.editor.js +++ b/resources/js/ext.translate.editor.js @@ -48,6 +48,10 @@ } this.render(); + // onReady callback + if ( this.options.onReady ) { + this.options.onReady.call( this ); + } }, /** -- To view, visit https://gerrit.wikimedia.org/r/89186 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ifdac69e82fc270412158f66da48709197873e139 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Translate Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> Gerrit-Reviewer: Amire80 <amir.ahar...@mail.huji.ac.il> Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits