Nikerabbit has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/312251

Change subject: ext.cx.source.selector: remove unused code
......................................................................

ext.cx.source.selector: remove unused code

Change-Id: I0bd2ec411a527ffa411e21a2cb57605d61544876
---
M modules/source/ext.cx.source.selector.js
1 file changed, 0 insertions(+), 37 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/51/312251/1

diff --git a/modules/source/ext.cx.source.selector.js 
b/modules/source/ext.cx.source.selector.js
index b240cdd..f84da9d 100644
--- a/modules/source/ext.cx.source.selector.js
+++ b/modules/source/ext.cx.source.selector.js
@@ -317,21 +317,6 @@
        };
 
        /**
-        * Handles searching for titles based on source title input.
-        */
-       CXSourceSelector.prototype.searchHandler = function () {
-               var $input = this.$sourceTitleInput;
-
-               this.$messageBar.hide();
-               this.searchTitles(
-                       this.getSourceLanguage(),
-                       $input.val()
-               ).done( function ( response ) {
-                       $input.suggestions( 'suggestions', response[ 1 ] );
-               } );
-       };
-
-       /**
         * Handles source language change.
         *
         * @param {string} language Language code.
@@ -624,28 +609,6 @@
                        this.overlay.hide();
                        this.$dialog.hide();
                }
-       };
-
-       /**
-        * Provides titles for autocompletion from given wiki.
-        *
-        * @param {string} language
-        * @param {string} input
-        * @return {jQuery.Deferred}
-        */
-       CXSourceSelector.prototype.searchTitles = function ( language, input ) {
-               var api = this.siteMapper.getApi( language );
-
-               return api.get( {
-                       action: 'opensearch',
-                       search: input,
-                       namespace: 0,
-                       suggest: true
-               }, {
-                       dataType: 'jsonp',
-                       // This prevents warnings about the unrecognized 
parameter "_"
-                       cache: true
-               } );
        };
 
        /**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0bd2ec411a527ffa411e21a2cb57605d61544876
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <niklas.laxst...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to