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

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

Bug: T1388
Bug: T76847
Change-Id: Ieaed2fd5cbac6e240179cc58e88bad0757056d1a
---
M modules/source/ext.cx.source.selector.js
1 file changed, 3 insertions(+), 3 deletions(-)

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



diff --git a/modules/source/ext.cx.source.selector.js 
b/modules/source/ext.cx.source.selector.js
index d552a01..355d15a 100644
--- a/modules/source/ext.cx.source.selector.js
+++ b/modules/source/ext.cx.source.selector.js
@@ -257,11 +257,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: merged
Gerrit-Change-Id: Ieaed2fd5cbac6e240179cc58e88bad0757056d1a
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Jsahleen <[email protected]>
Gerrit-Reviewer: Amire80 <[email protected]>
Gerrit-Reviewer: Santhosh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to