anchor.diff:                  modal.innerHTML = complete_logo(id);
                   break;
               case 'color_modal':
  -                modal.innerHTML = complete_color(id);
  -                $(".basic-picker").spectrum({
  -                    preferredFormat: "hex"
  -                });
  +                var col = colors_g[id];
  +                var boolean = false;
  +                if (col) {
  +                    if (col.single) {
  +                        boolean = true;
  +                    }
  +                }
  +
  +                if (boolean) {
  +                    only_photos(id, false);
  +                } else {
  +                    modal.innerHTML = complete_color(id, false);
  +                    $(".basic-picker").spectrum({
  +                        preferredFormat: "hex"
  +                    });
  +                }
                   break;
               case 'category_modal':
                   modal.innerHTML = complete_category(id);
  
positive.code:     }
  
      var counter = 0;
      var TEMP_REPLACEMENT = null;
  
      function only_photos() {
          TEMP_REPLACEMENT = modal.innerHTML;
          $('#only_photo').prop('checked', true);
      }
  
      function photos_color() {
          $('#only_photo').prop('checked', false);
      }
  
      function complete_color(id) {
          var html = '<button onclick="save_colors(' + id + ')">SAVE</button><input id="only_photo" style="float: right" type="checkbox" onchange="console.log(\'Photos, no color\')"> <h6 style="float: right">No color, Only photos available</h6>';
          var colors = colors_g[id];
          if (colors) {
              colors = colors.colors;
              colors.forEach(function (color) {
  
                  function checked() {
                      if (color.preferred) {
                          return 'checked';
  
negative.code:         var rows = $(modal).find('.color_row');
          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++) {
  