[FIX] website_crm_partner_assign: bad jquery binding

This commit is contained in:
Jérome Maes
2016-12-14 09:12:35 +01:00
parent 03ac47b9d7
commit 951d63daf3
@@ -36,7 +36,7 @@ $('.interested_partner_assign_confirm').on('click',function(e){
$('.desinterested_partner_assign_confirm').on('click',function(){
var $btn = this;
var $btn = $(this);
$btn.prop('disabled', true);
new Model('crm.lead')
.call("partner_desinterested",
@@ -54,7 +54,7 @@ $('.desinterested_partner_assign_confirm').on('click',function(){
});
opp_stage_buttons.on('click',function(e){
var $btn = this;
var $btn = $(this);
$btn.prop('disabled', true);
new Model('crm.lead')
.call("write", [[parseInt(e.currentTarget.getAttribute('opp'))],{
@@ -75,7 +75,7 @@ $('.edit_contact_form .country_id').on('change', function(){
});
$('.edit_contact_confirm').on('click',function(){
var $btn = this;
var $btn = $(this);
$btn.prop('disabled', true);
new Model('crm.lead')
.call("write", [[parseInt($('.edit_contact_form .opportunity_id').val())],{
@@ -100,7 +100,7 @@ $('.edit_contact_confirm').on('click',function(){
});
$('.edit_opp_confirm').on('click',function(){
var $btn = this;
var $btn = $(this);
$btn.prop('disabled', true);
new Model('crm.lead')
.call("update_lead_portal", [[parseInt($('.edit_opp_form .opportunity_id').val())],{