HTRACE-323. htrace-web: change the cursor to a spinner while a search is in progress (Colin Patrick McCabe via iwasakims)
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 @@
       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 @@
         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();