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

Change subject: Tools: Make the search field really a search field
......................................................................


Tools: Make the search field really a search field

use type=search

Change-Id: I1b368fadb2ffe428a9710b1cd0e0e42090e12217
---
M modules/tools/ext.cx.tools.js
1 file changed, 7 insertions(+), 7 deletions(-)

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



diff --git a/modules/tools/ext.cx.tools.js b/modules/tools/ext.cx.tools.js
index fab5518..d5b9783 100644
--- a/modules/tools/ext.cx.tools.js
+++ b/modules/tools/ext.cx.tools.js
@@ -37,7 +37,7 @@
        };
 
        ContentTranslationTools.prototype.render = function () {
-               var $progressBar;
+               var $progressBar, $search;
 
                this.$searchBox = $( '<div>' )
                        .addClass( 'card search cx-tools--container' );
@@ -46,13 +46,13 @@
                $progressBar = $( '<div>' )
                        .addClass( 'cx-header__progressbar' )
                        .cxProgressBar();
-
-               this.$searchBox.append(
-                       $( '<input>' )
+               $search = $( '<input>' )
                        .addClass( 'tools-words-search box' )
-                       .attr( 'placeholder', mw.msg( 'cx-tools-searchbox-text' 
) )
-               );
-
+                       .attr( {
+                               placeholder: mw.msg( 'cx-tools-searchbox-text' 
),
+                               type: 'search'
+                       } );
+               this.$searchBox.append( $search );
                this.$container.append(
                        $progressBar,
                        this.$searchBox,

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1b368fadb2ffe428a9710b1cd0e0e42090e12217
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com>
Gerrit-Reviewer: Divec <da...@sheetmusic.org.uk>
Gerrit-Reviewer: KartikMistry <kartik.mis...@gmail.com>
Gerrit-Reviewer: Pginer <pgi...@wikimedia.org>
Gerrit-Reviewer: Santhosh <santhosh.thottin...@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