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;
... ...
... ... @@ -249,7 +249,8 @@ var operationEdit={
},
bindEvent:function(){
var _g=this;
$(document).on('click','#save_operation',function(){return _g.save()});
$('#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);
... ...
... ... @@ -146,7 +146,8 @@ var rejectPromotions={
},
bindEvent: function() {
var _g = this;
$(document).on('click','#save_reject',function(){return _g.save()});
$('#save_reject').off();
$('#save_reject').on('click',function(){return _g.save()});
},
save:function(){
var _g=this;
... ...