Permalink
Browse files

Added loading spinner for landing page.

  • Loading branch information...
1 parent 6351e24 commit a0ab7967708aaae1ad726e52635a820f3f84a8f9 Michael Aufreiter committed Jul 6, 2012
Showing with 6 additions and 0 deletions.
  1. +3 −0 _includes/views/application.js
  2. +3 −0 index.html
@@ -51,8 +51,11 @@ views.Application = Backbone.View.extend({
replaceMainView: function (name, view) {
$('body').removeClass().addClass('current-view '+name);
+
if (this.mainView) {
this.mainView.remove();
+ } else {
+ $('#main').empty();
}
this.mainView = view;
$(view.el).appendTo(this.$('#main'));
View
@@ -2,3 +2,6 @@
layout: default
---
+<div class="loading">
+ <span>Loading info ...</span>
+</div>

0 comments on commit a0ab796

Please sign in to comment.