Charlie 9 年之前
父節點
當前提交
62e3133e7f
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      www/protected/views/product/index.php

+ 5 - 5
www/protected/views/product/index.php

@@ -326,18 +326,18 @@ $('body').on('click','.del_extra',function(){
         $(this).parent('div').remove();
 
         var extras = new Array();
-        if($('#coverage_edit').val()){
-            coverages = JSON.parse($('#coverage_edit').val());
+        if($('#add_extra').val()){
+            extras = JSON.parse($('#add_extra').val());
         }
 
-        coverages.splice($(this).parent('div').attr('data'),1);
+        extras.splice($(this).parent('div').attr('data'),1);
 
-        $('#coverage_edit_info').children('div').each(function(index,e){
+        $('#extra_add_info').children('div').each(function(index,e){
             console.log(index);
             $(this).attr("data",index);
         })
 
-        $('#coverage_edit').val(JSON.stringify(coverages));
+        $('#add_extra').val(JSON.stringify(extras));
     });
 
 $(function(){