Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteffen van Bergerem <svbergerem@online.de>2016-09-13 03:31:06 +0300
committerDennis Schubert <mail@dennis-schubert.de>2016-09-20 05:29:43 +0300
commitffb442266f0703f6fec4392e2a0655a9100d4242 (patch)
treeb5fa9eb73fb04e0df638745ec0f6beb0891ad20a /app/assets
parent260272cbee788bde0b9250bdfac4059f4227c8b2 (diff)
Remove custom typeahead mouse events
closes #7096
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/app/views/search_base_view.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/app/assets/javascripts/app/views/search_base_view.js b/app/assets/javascripts/app/views/search_base_view.js
index 72b032337..5769c7fb8 100644
--- a/app/assets/javascripts/app/views/search_base_view.js
+++ b/app/assets/javascripts/app/views/search_base_view.js
@@ -5,8 +5,6 @@ app.views.SearchBase = app.views.Base.extend({
this.setupBloodhound(options);
if(options.customSearch) { this.setupCustomSearch(); }
this.setupTypeahead();
- // TODO: Remove this as soon as corejavascript/typeahead.js has its first release
- this.setupMouseSelectionEvents();
if(options.autoselect) { this.setupAutoselect(); }
},
@@ -98,19 +96,6 @@ app.views.SearchBase = app.views.Base.extend({
suggestion.addClass("tt-cursor");
},
- // TODO: Remove this as soon as corejavascript/typeahead.js has its first release
- setupMouseSelectionEvents: function() {
- var self = this,
- selectSuggestion = function(e) { self._selectSuggestion($(e.target).closest(".tt-suggestion")); },
- deselectAllSuggestions = function() { self._deselectAllSuggestions(); };
-
- this.typeaheadInput.on("typeahead:render", function() {
- self.$(".tt-menu .tt-suggestion").off("mouseover").on("mouseover", selectSuggestion);
- self.$(".tt-menu .tt-suggestion *").off("mouseover").on("mouseover", selectSuggestion);
- self.$(".tt-menu .tt-suggestion").off("mouseleave").on("mouseleave", deselectAllSuggestions);
- });
- },
-
// Selects the first result when the result dropdown opens
setupAutoselect: function() {
var self = this;