anchor.diff:                          files: $(rows[i]).find('input[id="file"]')[0].files,
                           main_picture: $(rows[i]).find('select[name="main_image"]').val()
                       });
  +                    colors_g[id].cur_id = colors_g[id].cur_id + 1;
                       rows[i].dataset.changed = 'false';
                   } else {
  -                    colors_g[id].colors.push({
  -                        id: item.id,
  -                        title: $(rows[i]).find('input[id="title"]').val(),
  -                        price: $(rows[i]).find('input[id="price"]').val(),
  -                        color: $(rows[i]).find('input[id="code_hex"]').val(),
  -                        stock: $(rows[i]).find('input[id="stock_level"]').val(),
  -                        preferred: $(rows[i]).find('input[id="main"]').prop('checked'),
  -                        files: item.files,
  -                        main_picture: item.main_picture
  -                    });
  -                    rows[i].dataset.changed = 'false';
  +                    var item = get_correct(holder, parseInt(rows[i].dataset.idUse));
  +                    if (rows[i].dataset.changed === 'true') {
  +                        colors_g[id].colors.push({
  +                            id: item.id,
  +                            title: $(rows[i]).find('input[id="title"]').val(),
  +                            price: $(rows[i]).find('input[id="price"]').val(),
  +                            color: $(rows[i]).find('input[id="code_hex"]').val(),
  +                            stock: $(rows[i]).find('input[id="stock_level"]').val(),
  +                            preferred: $(rows[i]).find('input[id="main"]').prop('checked'),
  +                            files: $(rows[i]).find('input[id="file"]')[0].files,
  +                            main_picture: $(rows[i]).find('select[name="main_image"]').val()
  +                        });
  +                        rows[i].dataset.changed = 'false';
  +                    } else {
  +                        colors_g[id].colors.push({
  +                            id: item.id,
  +                            title: $(rows[i]).find('input[id="title"]').val(),
  +                            price: $(rows[i]).find('input[id="price"]').val(),
  +                            color: $(rows[i]).find('input[id="code_hex"]').val(),
  +                            stock: $(rows[i]).find('input[id="stock_level"]').val(),
  +                            preferred: $(rows[i]).find('input[id="main"]').prop('checked'),
  +                            files: item.files,
  +                            main_picture: item.main_picture
  +                        });
  +                        rows[i].dataset.changed = 'false';
  +                    }
                   }
               }
  -        }
  -
  -        close_modal();
  +
  +            close_modal();
  +        } else {
  +            alert("Favor verficar que todos los campos.");
  +        }
       }
   
       function complete_category(id) {
  
positive.code:                     file_info.append('file', files[files_cur]);
                      file_info.append('parent_id', id);
                      file_info.append('main_name', colors[id_c].main_picture);
                      $.ajax({
                          url: "/product/new/image",
                          type: "POST",
  
negative.code:         var limit_n = rows.length;
          var current_n = 0;
  
          console.log(rows[current_n]);
          request(rows[current_n]);
  
          function request(row) {
              var id_row = $(row).data('idRow');
  
              var logos_arr = [];
  