Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added loading spinner for landing page.

  • Loading branch information...
commit a0ab7967708aaae1ad726e52635a820f3f84a8f9 1 parent 6351e24
Michael Aufreiter authored
Showing with 6 additions and 0 deletions.
  1. +3 −0  _includes/views/application.js
  2. +3 −0  index.html
View
3  _includes/views/application.js
@@ -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
3  index.html
@@ -2,3 +2,6 @@
layout: default
---
+<div class="loading">
+ <span>Loading info ...</span>
+</div>
Please sign in to comment.
Something went wrong with that request. Please try again.