Authored by chenchao

off event first

... ... @@ -25,7 +25,8 @@ var baseInfoEdit={
},
bindEvent:function(){
var _g=this;
$(document).on('click','#save_baseinfo',function(){return _g.save()});
$("#save_baseinfo").off();
$("#save_baseinfo").on('click',function(){return _g.save()});
},
validate:function(){
var promotionParams=PromotionInfo.promotionParams;
... ...
... ... @@ -194,8 +194,8 @@ var conditionEdit={
},
bindEvent : function(){
var _g=this;
$(document).on("click","#save_condition",function(){
$("#save_condition").off();
$("#save_condition").on("click",function(){
var allFormGroup = $("#tab_body").find(".form-group");
var form_datas={}, form_data;
var pNodeIndex,curNodeIndex;
... ...
... ... @@ -21,7 +21,8 @@ var limitEdit={
},
bindEvent:function(){
var _g=this;
$(document).on('click','#save_limit',function(){return _g.save()});
$('#save_limit').off();
$('#save_limit').on('click',function(){return _g.save()});
},
save:function(){
var _g=this;
... ...
... ... @@ -248,8 +248,9 @@ var operationEdit={
this.template(firstGroup,_selectObj);
},
bindEvent:function(){
var _g=this;
$(document).on('click','#save_operation',function(){return _g.save()});
var _g=this;
$('#save_operation').off();
$('#save_operation').on('click',function(){return _g.save()});
$("#promotionType").change(function(){
var selectKey=$(this).children('option:selected').val();
return _g.selectOneOption(selectKey);
... ...
... ... @@ -145,8 +145,9 @@ var rejectPromotions={
_grid.reload(1);
},
bindEvent: function() {
var _g = this;
$(document).on('click','#save_reject',function(){return _g.save()});
var _g = this;
$('#save_reject').off();
$('#save_reject').on('click',function(){return _g.save()});
},
save:function(){
var _g=this;
... ...