anchor.diff:          var holder = null;
           var colors_tt = colors_g[id];
           colors_g[id] = {cur_id: 0, colors: [], single: $('#only_photo').is(':checked')};
  -
  -        if (colors_tt) {
  -            holder = colors_tt.colors;
  -            colors_g[id] = {cur_id: colors_tt.cur_id, colors: [], single: $('#only_photo').is(':checked')};
  -        }
  -
  -        for (var i = 0; i < rows.length; i++) {
  -            if (rows[i].dataset.ocupaidUse === 'false') {
  -                colors_g[id].colors.push({
  -                    id: colors_g[id].cur_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()
  -                });
  -                colors_g[id].cur_id = colors_g[id].cur_id + 1;
  -                rows[i].dataset.changed = 'false';
  -            } else {
  -                var item = get_correct(holder, parseInt(rows[i].dataset.idUse));
  -                if (rows[i].dataset.changed === 'true') {
  +        var bTitle = !!$(modal).find('.color_row').find('input[id="title"]').val();
  +        var bPrice = !!$(modal).find('.color_row').find('input[id="price"]').val();
  +        //var bColor = !!$(modal).find('.color_row').find('input[id="code_hex"]').val();
  +        var bStock = !!$(modal).find('.color_row').find('input[id="stock_level"]').val();
  +        var bFiles = $(modal).find('.color_row').find('input[id="file"]')[0].files == 0 ? false : true;
  +
  +        if(bTitle && bPrice && bStock && bFiles) {
  +            if (colors_tt) {
  +                holder = colors_tt.colors;
  +                colors_g[id] = {cur_id: colors_tt.cur_id, colors: [], single: $('#only_photo').is(':checked')};
  +            }
  +            for (var i = 0; i < rows.length; i++) {
  +                if (rows[i].dataset.ocupaidUse === 'false') {
                       colors_g[id].colors.push({
  -                        id: item.id,
  +                        id: colors_g[id].cur_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(),
  
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 = [];
  