Skip to content

Commit

Permalink
bugfix: loading throbber not hiding.
Browse files Browse the repository at this point in the history
closes #61
  • Loading branch information
Zé Bateira committed Jun 16, 2014
1 parent 3dccb7e commit 23bb133
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/controllers/graphcontroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,14 @@ require([
};
// Displays a loading throbber and hides the graph canvas
GraphController.prototype.showThrobber = function() {
if (this.throbber)
this.throbber.hide();

this.throbber =
Throbber.forElement($('.loading-wrapper')[0]);

this.throbber.setPosition('center', 'center');
this.throbber._addBackground();
this.throbber.show();
};
GraphController.prototype.hideThrobber = function() {
if (this.throbber)
Expand Down Expand Up @@ -207,7 +209,7 @@ require([

// Events

// Binds all the events related to the graph components.
// Binds all the events related to the graph component.
GraphController.prototype.bindAllEvents = function() {
this.artistgraph.onGraph('doubleClick',
this.events.onNodeDoubleClick.bind(this));
Expand Down

0 comments on commit 23bb133

Please sign in to comment.