Ver a proveniência

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

version-14
Anand Doshi há 12 anos
ascendente
cometimento
3886cad8b2
2 ficheiros alterados com 13 adições e 0 eliminações
  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 Ver ficheiro

@@ -488,4 +488,13 @@ fieldset[disabled] .btn-default.active {
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
padding-right: 0px; 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 Ver ficheiro

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

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

Carregando…
Cancelar
Guardar