mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
increase toolbox search delay
log search terms
This commit is contained in:
@@ -385,13 +385,15 @@ var ToolSearch = Backbone.Model.extend({
|
||||
$("#search-clear-btn").hide();
|
||||
$("#search-spinner").show();
|
||||
var self = this;
|
||||
// log the search to analytics
|
||||
ga( 'send', 'pageview', galaxy_config.root + '?q=' + q );
|
||||
this.timer = setTimeout(function () {
|
||||
$.get(self.attributes.search_url, { query: q }, function (data) {
|
||||
self.set("results", data);
|
||||
$("#search-spinner").hide();
|
||||
$("#search-clear-btn").show();
|
||||
}, "json" );
|
||||
}, 200 );
|
||||
}, 400 );
|
||||
},
|
||||
|
||||
clear_search: function() {
|
||||
|
||||
@@ -385,13 +385,15 @@ var ToolSearch = Backbone.Model.extend({
|
||||
$("#search-clear-btn").hide();
|
||||
$("#search-spinner").show();
|
||||
var self = this;
|
||||
// log the search to analytics
|
||||
ga( 'send', 'pageview', galaxy_config.root + '?q=' + q );
|
||||
this.timer = setTimeout(function () {
|
||||
$.get(self.attributes.search_url, { query: q }, function (data) {
|
||||
self.set("results", data);
|
||||
$("#search-spinner").hide();
|
||||
$("#search-clear-btn").show();
|
||||
}, "json" );
|
||||
}, 200 );
|
||||
}, 400 );
|
||||
},
|
||||
|
||||
clear_search: function() {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user