Browse Source

[cleanup] [minor] wn.ui.toolbar.show_banner

version-14
Anand Doshi 12 years ago
parent
commit
3886cad8b2
2 changed files with 13 additions and 0 deletions
  1. +9
    -0
      public/css/ui/common.css
  2. +4
    -0
      public/js/wn/ui/toolbar/toolbar.js

+ 9
- 0
public/css/ui/common.css View File

@@ -488,4 +488,13 @@ fieldset[disabled] .btn-default.active {
text-overflow: ellipsis;
white-space: nowrap;
padding-right: 0px;
}

.toolbar-banner {
margin-top: -20px;
margin-bottom: 20px;
text-align: center;
background-color: rgb(255, 255, 204);
padding: 7px;
z-index: 1;
}

+ 4
- 0
public/js/wn/ui/toolbar/toolbar.js View File

@@ -253,3 +253,7 @@ wn.ui.toolbar.show_about = function() {
}
return false;
}

wn.ui.toolbar.show_banner = function(msg) {
return $('<div class="toolbar-banner"></div>').html(msg).appendTo($('header'));
}

Loading…
Cancel
Save