This website works better with JavaScript.
Home
Explore
Help
Sign In
anoopmb
/
frappe
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
[cleanup] [minor] wn.ui.toolbar.show_banner
version-14
Anand Doshi
12 years ago
parent
a33299a6f5
commit
3886cad8b2
2 changed files
with
13 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+9
-0
public/css/ui/common.css
+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'));
}
Write
Preview
Loading…
Cancel
Save