[-] BO: Fix PSFV-177 backoffice order message

This commit is contained in:
rGaillard
2012-03-02 11:21:40 +00:00
parent 4849d1c752
commit 2437c9f15f
3 changed files with 56 additions and 2 deletions
@@ -201,6 +201,28 @@
var product = $(this).attr('rel').split('_');
updateProductPrice(product[0], product[1], $(this).val());
});
$('#order_message').live('change', function(e) {
e.preventDefault();
$.ajax({
type:"POST",
url: "{$link->getAdminLink('AdminCarts')}",
async: true,
dataType: "json",
data : {
ajax: "1",
token: "{getAdminToken tab='AdminCarts'}",
tab: "AdminCarts",
action: "updateOrderMessage",
id_cart: id_cart,
id_customer: id_customer,
message: $(this).val()
},
success : function(res)
{
displaySummary(res);
}
});
});
/*$('.fancybox').live('click', function(e) {
$(this).fancybox().trigger('click');
return false;
@@ -611,6 +633,7 @@
$('#id_lang option[value="'+id_lang+'"]').attr('selected', 'selected');
$('#send_email_to_customer').attr('rel', jsonSummary.link_order);
$('#go_order_process').attr('href', jsonSummary.link_order);
$('#order_message').val(jsonSummary.order_message);
resetBind();
}
@@ -157,7 +157,7 @@ jQuery(document).ready(Customer.init);
</span>
{if $tax_exclude_taxe_option}
<span style="margin-left:10px; color:red;">{l s='Taxes are currently disabled'}</span> (<b><a href="{$link->getAdminLink('AdminTaxes')}">{l s='Tax options'}</a></b>)
<input type="hidden" value="{$product->id_tax_rules_group}" name="id_tax_rules_group" />
<input type="hidden" value="{$product->getIdTaxRulesGroup()}" name="id_tax_rules_group" />
{/if}
</td>
</tr>