|
@@ -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(){
|