Authored by chenchao

off event first

@@ -25,7 +25,8 @@ var baseInfoEdit={ @@ -25,7 +25,8 @@ var baseInfoEdit={
25 }, 25 },
26 bindEvent:function(){ 26 bindEvent:function(){
27 var _g=this; 27 var _g=this;
28 - $(document).on('click','#save_baseinfo',function(){return _g.save()}); 28 + $("#save_baseinfo").off();
  29 + $("#save_baseinfo").on('click',function(){return _g.save()});
29 }, 30 },
30 validate:function(){ 31 validate:function(){
31 var promotionParams=PromotionInfo.promotionParams; 32 var promotionParams=PromotionInfo.promotionParams;
@@ -194,8 +194,8 @@ var conditionEdit={ @@ -194,8 +194,8 @@ var conditionEdit={
194 }, 194 },
195 bindEvent : function(){ 195 bindEvent : function(){
196 var _g=this; 196 var _g=this;
197 -  
198 - $(document).on("click","#save_condition",function(){ 197 + $("#save_condition").off();
  198 + $("#save_condition").on("click",function(){
199 var allFormGroup = $("#tab_body").find(".form-group"); 199 var allFormGroup = $("#tab_body").find(".form-group");
200 var form_datas={}, form_data; 200 var form_datas={}, form_data;
201 var pNodeIndex,curNodeIndex; 201 var pNodeIndex,curNodeIndex;
@@ -21,7 +21,8 @@ var limitEdit={ @@ -21,7 +21,8 @@ var limitEdit={
21 }, 21 },
22 bindEvent:function(){ 22 bindEvent:function(){
23 var _g=this; 23 var _g=this;
24 - $(document).on('click','#save_limit',function(){return _g.save()}); 24 + $('#save_limit').off();
  25 + $('#save_limit').on('click',function(){return _g.save()});
25 }, 26 },
26 save:function(){ 27 save:function(){
27 var _g=this; 28 var _g=this;
@@ -249,7 +249,8 @@ var operationEdit={ @@ -249,7 +249,8 @@ var operationEdit={
249 }, 249 },
250 bindEvent:function(){ 250 bindEvent:function(){
251 var _g=this; 251 var _g=this;
252 - $(document).on('click','#save_operation',function(){return _g.save()}); 252 + $('#save_operation').off();
  253 + $('#save_operation').on('click',function(){return _g.save()});
253 $("#promotionType").change(function(){ 254 $("#promotionType").change(function(){
254 var selectKey=$(this).children('option:selected').val(); 255 var selectKey=$(this).children('option:selected').val();
255 return _g.selectOneOption(selectKey); 256 return _g.selectOneOption(selectKey);
@@ -146,7 +146,8 @@ var rejectPromotions={ @@ -146,7 +146,8 @@ var rejectPromotions={
146 }, 146 },
147 bindEvent: function() { 147 bindEvent: function() {
148 var _g = this; 148 var _g = this;
149 - $(document).on('click','#save_reject',function(){return _g.save()}); 149 + $('#save_reject').off();
  150 + $('#save_reject').on('click',function(){return _g.save()});
150 }, 151 },
151 save:function(){ 152 save:function(){
152 var _g=this; 153 var _g=this;