Authored by chenjian

bugfix

@@ -1144,10 +1144,13 @@ @@ -1144,10 +1144,13 @@
1144 } 1144 }
1145 }); 1145 });
1146 $("#channelIds").val(channels); 1146 $("#channelIds").val(channels);
  1147 +
  1148 + var html = '';
1147 for (var i = 0; i < checkedItems.length; i++) { 1149 for (var i = 0; i < checkedItems.length; i++) {
1148 html += "<input name='products["+i+"].productSkn' hidden value='"+checkedItems[i].productSkn+"'/><br>"; 1150 html += "<input name='products["+i+"].productSkn' hidden value='"+checkedItems[i].productSkn+"'/><br>";
1149 html += "<input name='products["+i+"].productType' hidden value='"+checkedItems[i].productType+"'/>"; 1151 html += "<input name='products["+i+"].productType' hidden value='"+checkedItems[i].productType+"'/>";
1150 } 1152 }
  1153 +
1151 $("#products").html(html); 1154 $("#products").html(html);
1152 var cover1 = $("input[type='hidden'][name='coverImage']").val(); 1155 var cover1 = $("input[type='hidden'][name='coverImage']").val();
1153 var cover2 = $("input[type='hidden'][name='coverImage2']").val(); 1156 var cover2 = $("input[type='hidden'][name='coverImage2']").val();