htrace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iwasak...@apache.org
Subject incubator-htrace git commit: HTRACE-323. htrace-web: change the cursor to a spinner while a search is in progress (Colin Patrick McCabe via iwasakims)
Date Tue, 15 Dec 2015 06:56:52 GMT
Repository: incubator-htrace
Updated Branches:
  refs/heads/master 898eaf8b9 -> 44397a051


HTRACE-323. htrace-web: change the cursor to a spinner while a search is in progress (Colin
Patrick McCabe via iwasakims)


Project: http://git-wip-us.apache.org/repos/asf/incubator-htrace/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-htrace/commit/44397a05
Tree: http://git-wip-us.apache.org/repos/asf/incubator-htrace/tree/44397a05
Diff: http://git-wip-us.apache.org/repos/asf/incubator-htrace/diff/44397a05

Branch: refs/heads/master
Commit: 44397a051a635cb4ea7adf3f2934fff4aea5a170
Parents: 898eaf8
Author: Masatake Iwasaki <iwasakims@apache.org>
Authored: Tue Dec 15 15:56:15 2015 +0900
Committer: Masatake Iwasaki <iwasakims@apache.org>
Committed: Tue Dec 15 15:56:15 2015 +0900

----------------------------------------------------------------------
 htrace-webapp/src/main/webapp/app/search_view.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-htrace/blob/44397a05/htrace-webapp/src/main/webapp/app/search_view.js
----------------------------------------------------------------------
diff --git a/htrace-webapp/src/main/webapp/app/search_view.js b/htrace-webapp/src/main/webapp/app/search_view.js
index aeb4273..5936410 100644
--- a/htrace-webapp/src/main/webapp/app/search_view.js
+++ b/htrace-webapp/src/main/webapp/app/search_view.js
@@ -90,12 +90,14 @@ htrace.SearchView = Backbone.View.extend({
       queryJson.prev =
           this.searchResults.at(this.searchResults.size() - 1).unparse();
     }
+    $("body").css("cursor", "progress");
     var searchView = this;
     var queryResults = new htrace.QueryResults({queryJson: queryJson});
     console.log("Starting span query " + queryResults.url());
     this.searchInProgress = true;
     queryResults.fetch({
       success: function(model, response, options){
+        $("body").css("cursor", "default");
         var firstResults = (searchView.searchResults.size() === 0);
         console.log("Success on span query " + queryResults.url() + ": got " +
             queryResults.size() + " result(s).  firstResults=" + firstResults);
@@ -125,6 +127,7 @@ htrace.SearchView = Backbone.View.extend({
         searchView.resultsView.render();
       },
       error: function(model, response, options){
+        $("body").css("cursor", "default");
         searchView.searchResults.reset();
         var err = "Error " + JSON.stringify(response, null, 2) +
           " on span query " + queryResults.url();


Mime
View raw message