Jsahleen has uploaded a new change for review. https://gerrit.wikimedia.org/r/179192
Change subject: Source selector: Add input event for validation and warning ...................................................................... Source selector: Add input event for validation and warning * Adds input event to triggers for title checking * Throttles handler Also fixes: https://phabricator.wikimedia.org/T1388 Bug: T76847 Change-Id: Ieaed2fd5cbac6e240179cc58e88bad0757056d1a --- M modules/source/ext.cx.source.selector.js 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/92/179192/1 diff --git a/modules/source/ext.cx.source.selector.js b/modules/source/ext.cx.source.selector.js index 136a706..9b85893 100644 --- a/modules/source/ext.cx.source.selector.js +++ b/modules/source/ext.cx.source.selector.js @@ -248,11 +248,11 @@ $.debounce( 100, false, $.proxy( this.searchHandler, this ) ) ); - // Source title input or target title input, blur or search (check) + // Source title input or target title input, input or search (check) this.$dialog.on( - 'blur', + 'input blur', '.cx-sourceselector-dialog__title', - $.proxy( this.check, this ) + $.debounce( 600, false, $.proxy( this.check, this ) ) ); // Keypress (start translation on enter key) -- To view, visit https://gerrit.wikimedia.org/r/179192 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ieaed2fd5cbac6e240179cc58e88bad0757056d1a Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Jsahleen <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
