From 7b0e8633afd1d7d3a773fec718bb1ba1a42e555c Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Tue, 28 Feb 2012 19:40:12 +0100 Subject: [PATCH] fix #459 Fonction d'ajout au panier via la vignette --- templates/web/common/drop_down_options.html | 2 +- templates/web/prod/preview/tools.html | 2 +- templates/web/prod/results/record.html | 2 +- www/prod/jquery.WorkZone.js | 20 +++++++++++++------- www/prod/page0.js | 6 +++--- 5 files changed, 19 insertions(+), 13 deletions(-) diff --git a/templates/web/common/drop_down_options.html b/templates/web/common/drop_down_options.html index 3069c422bb..d07ca3b41a 100644 --- a/templates/web/common/drop_down_options.html +++ b/templates/web/common/drop_down_options.html @@ -10,7 +10,7 @@ {% if user.ACL.has_right_on_base(record.get_base_id, 'canputinalbum') and not record.is_grouping() %}
+ onclick="evt_add_in_chutier('{{record.get_base_id}}','{{record.get_record_id}}',false,true);return(false);"> {% trans 'action : ajouter au panier' %}
diff --git a/templates/web/prod/preview/tools.html b/templates/web/prod/preview/tools.html index 2f5fda19f3..e9888ad449 100644 --- a/templates/web/prod/preview/tools.html +++ b/templates/web/prod/preview/tools.html @@ -2,7 +2,7 @@ {% if (record.is_from_basket is empty) and user.ACL().has_right_on_base(record.get_base_id(), 'canputinalbum') %}
+ onclick="evt_add_in_chutier('{{record.get_base_id()}}','{{record.get_record_id()}}',false);return(false);"> {% endif %}
{% elseif record.is_grouping() %}