mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
move the logging to the timer function
This commit is contained in:
@@ -385,9 +385,9 @@ 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 () {
|
||||
// log the search to analytics
|
||||
ga( 'send', 'pageview', galaxy_config.root + '?q=' + q );
|
||||
$.get(self.attributes.search_url, { query: q }, function (data) {
|
||||
self.set("results", data);
|
||||
$("#search-spinner").hide();
|
||||
|
||||
@@ -385,9 +385,9 @@ 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 () {
|
||||
// log the search to analytics
|
||||
ga( 'send', 'pageview', galaxy_config.root + '?q=' + q );
|
||||
$.get(self.attributes.search_url, { query: q }, function (data) {
|
||||
self.set("results", data);
|
||||
$("#search-spinner").hide();
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user