Merge "Disable browser provided autocomplete function in TitleInputWidget"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 12 Jul 2015 03:53:23 +0000 (03:53 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 12 Jul 2015 03:53:23 +0000 (03:53 +0000)
resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js

index df2f1a7..ca8c400 100644 (file)
@@ -30,7 +30,7 @@
                config = config || {};
 
                // Parent constructor
-               OO.ui.TextInputWidget.call( this, config );
+               OO.ui.TextInputWidget.call( this, $.extend( {}, config, { autocomplete: false } ) );
 
                // Mixin constructors
                OO.ui.mixin.LookupElement.call( this, config );