Authored by chenchao

fix

var $ = require('jquery'),
common = require('../../../../common/common');
var batchId =[];
var promotionEdit={
var promotionEdit={
batchId:[],
buildCheckboxHtml:function(_class,_data_index,_checked){
var _checkBox="<input type='checkbox'";
var _end="/>",
... ... @@ -36,7 +37,7 @@ var promotionEdit={
var _class="wqt_checkbox";
if(this.batchId.length == 0 ){
//htmlContent = "<input type='checkbox' class='wqt_checkbox' data-index='"+item.__index+"'>";
htmlContent = this.buildCheckboxHtml(_class,item.__index,null);
htmlContent = this.buildCheckboxHtml(_class,item.__index);
}else{
$.each(this.batchId,function(n,value) {
if(item.id == value){
... ... @@ -45,7 +46,7 @@ var promotionEdit={
return false
}else{
//htmlContent = "<input type='checkbox' class='wqt_checkbox' data-index='"+item.__index+"'>";
htmlContent = this.buildCheckboxHtml(_class,item.__index,null);
htmlContent = this.buildCheckboxHtml(_class,item.__index);
}
})
}
... ...