Ankita-ks has uploaded a new change for review. https://gerrit.wikimedia.org/r/231986
Change subject: Makes replace from drop-down works ...................................................................... Makes replace from drop-down works Change-Id: I4b4e09d3234989279996234f49c805841b0b4241 --- M modules/ext.LanguageToolDialog.js 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LanguageTool refs/changes/86/231986/1 diff --git a/modules/ext.LanguageToolDialog.js b/modules/ext.LanguageToolDialog.js index 7c0f0e5..d407816 100644 --- a/modules/ext.LanguageToolDialog.js +++ b/modules/ext.LanguageToolDialog.js @@ -419,9 +419,9 @@ * @param {number} index Index to replace */ mw.LanguageToolDialog.prototype.replace = function ( index ) { - var replaceArr, replace = this.replaceText.getValue(); - replaceArr = replace.split( '#' ); - replace = replaceArr[ 0 ]; + var replace; + + replace = this.replaceText.getInput().getValue(); this.fragments[ index ].insertContent( replace, true ); }; -- To view, visit https://gerrit.wikimedia.org/r/231986 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4b4e09d3234989279996234f49c805841b0b4241 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/LanguageTool Gerrit-Branch: master Gerrit-Owner: Ankita-ks <kumariankita...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits