[IMP] website_sale: header change for user customization

bzr revid: chm@openerp.com-20131107135306-8jpe0gl4iqmgl51k
This commit is contained in:
Christophe Matthieu
2013-11-07 14:53:06 +01:00
parent 5ec0f27cde
commit 25f6d1c83f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -118,7 +118,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" t-href="/"><em>Your</em><b>Company</b></a>
<a class="navbar-brand" href="/"><em>Your</em> <b>Company</b></a>
</div>
<div class="collapse navbar-collapse navbar-top-collapse">
<ul class="nav navbar-nav navbar-right" id="top_menu">
@@ -17,7 +17,7 @@ $(document).ready(function () {
function set_my_cart_quantity(qty) {
var $q = $(".my_cart_quantity");
$q.parent().parent().toggleClass("hidden", !qty);
$q.parent().parent().removeClass("hidden", !qty);
$q.html(qty)
.hide()
.fadeIn(600);
+1 -1
View File
@@ -4,7 +4,7 @@
<!-- Layout add nav and footer -->
<template id="header" inherit_id="website.layout" name="Custom Header">
<template id="header" inherit_id="website.layout" name="Header Shop My Cart Link">
<xpath expr="//header//ul[@id='top_menu']/li" position="before">
<li t-att-class="(not website_sale_order or not website_sale_order.get_total_quantity()) and 'hidden' or ''">
<a t-href="/shop/mycart/">