Skip to content

Commit

Permalink
modified loading style so tables won't jump around
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevnz committed Mar 8, 2012
1 parent a06c0ba commit e0582b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/javascripts/main.js
Expand Up @@ -19,7 +19,9 @@
},
// Turn 'running' attribute into more human-friendly status
_parseRunning: function(running) {
console.log(running);
if(running === undefined){
running = 'Application failed to start';
}
switch(running) {
case 'true':
case true:
Expand All @@ -29,8 +31,6 @@
case false :
return [false, 'stopped'];
break;
case undefined:
return [false, 'unknown'];
default:
var text = running.toString().split('-').join(' ').split('_').join(' ');
return [false, text];
Expand Down
4 changes: 4 additions & 0 deletions public/stylesheets/style.css
Expand Up @@ -226,4 +226,8 @@ footer p {
min-height:20px;
padding:4px;
background:url('../i/loader.gif') no-repeat 50% top;
position: fixed;
top:180px;
left:50%;
z-index:5;
}

0 comments on commit e0582b3

Please sign in to comment.