[minor] show brand html in toolbar

This commit is contained in:
Anand Doshi 2013-07-17 14:15:26 +05:30
parent 6537f3d25f
commit cc04a17030
3 changed files with 4 additions and 3 deletions

View File

@ -18,9 +18,9 @@ from __future__ import unicode_literals
patch_list = [ patch_list = [
"execute:webnotes.reload_doc('core', 'doctype', 'docfield') #2013-07-15", "execute:webnotes.reload_doc('core', 'doctype', 'docfield') #2013-07-15",
"execute:webnotes.reload_doc('core', 'doctype', 'docperm') #2013-07-15", "execute:webnotes.reload_doc('core', 'doctype', 'docperm') #2013-07-15",
"execute:webnotes.reload_doc('core', 'doctype', 'report') #2013-07-15",
"execute:webnotes.reload_doc('core', 'doctype', 'doctype') #2013-07-15", "execute:webnotes.reload_doc('core', 'doctype', 'doctype') #2013-07-15",
"execute:webnotes.reload_doc('core', 'doctype', 'page') #2013-07-15", "execute:webnotes.reload_doc('core', 'doctype', 'page') #2013-07-15",
"execute:webnotes.reload_doc('core', 'doctype', 'report') #2013-07-15",
"patches.mar_2012.clean_property_setter", "patches.mar_2012.clean_property_setter",
"patches.april_2012.naming_series_patch", "patches.april_2012.naming_series_patch",
"patches.mar_2012.cleanup_control_panel", "patches.mar_2012.cleanup_control_panel",

View File

@ -16,7 +16,8 @@ wn.modules_path = 'erpnext';
// add toolbar icon // add toolbar icon
$(document).bind('toolbar_setup', function() { $(document).bind('toolbar_setup', function() {
$('.navbar-brand').html('<object data="app/images/splash.svg" \ $('.navbar-brand').html('<object data="app/images/splash.svg" \
class="toolbar-splash" type="image/svg+xml"></object>erpnext') class="toolbar-splash" type="image/svg+xml"></object>' +
(wn.boot.website_settings.brand_html || 'erpnext'))
.css('max-width', '200px').css('overflow', 'hidden') .css('max-width', '200px').css('overflow', 'hidden')
.hover(function() { .hover(function() {
$(this).find('.icon-home').addClass('navbar-icon-home-hover'); $(this).find('.icon-home').addClass('navbar-icon-home-hover');

View File

@ -37,5 +37,5 @@ span, div, td, input, textarea, button, select {
.toolbar-splash { .toolbar-splash {
width: 32px; width: 32px;
height: 32px; height: 32px;
margin: -11px auto; margin: -10px auto;
} }