Skip to content

Commit

Permalink
Merge pull request #965 from aholachek/library-bigquery
Browse files Browse the repository at this point in the history
added loading icon
  • Loading branch information
aholachek committed Jun 9, 2016
2 parents 48b195b + 862d006 commit f049fc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ <h2>{{name}}</h2>

{{#if edit}}
<div class="pull-right" style="position:relative;z-index:1">
<button class="btn btn-default bigquery-export"><i class="fa fa-arrow-right"></i> View this library in the ADS Search Results Page</button>
<button class="btn btn-default bigquery-export">
<i class="icon-loading" style="display:none"></i>
<i class="fa fa-arrow-right"></i> View this library in the ADS Search Results Page
</button>
</div>
<div class="editable-item" data-field="name">
<h2>{{name}} <button class="btn btn-link toggle-form">edit</button></h2>
Expand Down
4 changes: 4 additions & 0 deletions src/js/widgets/library_individual/views/library_header.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ define([
},

triggerStartSearch : function(){
//hide icons
this.$(".bigquery-export i").css("display", "none");
//show loader
this.$(".bigquery-export .icon-loading").css("display", "inline-block");
this.trigger("start-search");
}

Expand Down

0 comments on commit f049fc3

Please sign in to comment.