[minor] [fix] net_total_export printing and hover effect for brand in navbar

This commit is contained in:
Anand Doshi 2013-07-18 18:15:56 +05:30
parent a45d164140
commit c8b2c0f091
2 changed files with 6 additions and 11 deletions

View File

@ -25,7 +25,7 @@ cur_frm.cscript.refresh = function(doc, cdt, cdn) {
}
// For customizing print
cur_frm.pformat.net_total = function(doc) {
cur_frm.pformat.net_total_export = function(doc) {
return '';
}
@ -70,8 +70,8 @@ cur_frm.pformat.other_charges= function(doc){
// main table
out +='<table class="noborder" style="width:100%">';
if(!print_hide('net_total')) {
out +=make_row('Net Total',convert_rate(doc.net_total),1);
if(!print_hide('net_total_export')) {
out += make_row('Net Total', doc.net_total_export, 1);
}
// add rows

View File

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