Skip to content

Commit

Permalink
Show missing directory status message as persistent (using new "impor…
Browse files Browse the repository at this point in the history
…tant" message style)
  • Loading branch information
rehno-lindeque committed Jun 5, 2012
1 parent 4b66f49 commit 9cf712e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/statusbar.handler.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var StatusBar = StatusBar || {};
(function(){
var storageEventHandler = adt({
MovedOutRootDirectory: function() { StatusBar.info("The root directory was moved"); },
MovedOutRootDirectory: function() { StatusBar.important("The root directory was moved"); },
RestoredRootDirectory: function() { StatusBar.info("The root directory has been restored"); },
DeletedRootDirectory: function() { StatusBar.info("The root directory was deleted"); }
DeletedRootDirectory: function() { StatusBar.important("The root directory was deleted"); }
});

StatusBar.handler = adt({
Expand Down
3 changes: 3 additions & 0 deletions client/src/statusbar.message.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
StatusBar.info = function(message) {
$('#page-statusbar').html(html.span({class: "status-info"}, html.em(message)));
};
StatusBar.important = function(message) {
$('#page-statusbar').html(html.span({class: "status-important"}, html.strong(message)));
};
})(html.evalCons);
3 changes: 3 additions & 0 deletions client/style/main.cassius
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ textarea::selection, textarea::-moz-selection, textarea::-webkit-selection
animation-name: status-info-fade
animation-iteration-count: 1

.status-important
color: rgb(165, 165, 165)

.editor
position: relative
width: 100%
Expand Down

0 comments on commit 9cf712e

Please sign in to comment.