anchor.diff:    // Remove Unit Assessment to Map
     //
     //////////////////////////////
  -
   
     $(document)
     .on('ajax:error', ".maps_map_assessments_destroy", function(event, data, status, xhr) {
  
positive.code:     $("#standards_table").html(data);  
    });
  
  
  
    //////////////////////////////
    //
    // Adding/Removing Map Standards
    //
    //////////////////////////////
  
  
    $(document).on('click', '#standards_list .standard-selected', function(e) {
  
  
      var standardId = $(this).attr('standard-id');
      var mapId = $('#map-id').val();
      if(standardId == undefined || mapId == undefined) return false;
  
      console.log("Removing Standard from Map: " + standardId + " From Map: " + mapId);
  
      var requestURL = '/ajax/maps/'+mapId+'/map_standards/'+standardId+'/destroy';
  
      $.ajax({
        url: requestURL,
        dataType: 'html'
      }).done(function(data) {
        console.log("Removed Standard from Map: " + standardId + " From Map: " + mapId);
        $('#map_standards_list').html(data);
      });   
  
      $(this).attr('class','standard-default');
  
      e.stopPropagation();
    });
  
negative.code:   
      var standardId = $(this).attr('standard-id');
      var mapId = $('#map-id').val();
      var element = $(this);
      var actionUrl = '/ajax/maps/'+mapId+'/map_standards/'+standardId+'/new';
      if(standardId == undefined || mapId == undefined) return false;
  
      $.ajax({
        url: actionUrl,
        dataType: 'html',
        success: function (response) {
          $('#map_standards_list').html(response);
  
          // Mark all children standards as selected
          element.find('.standard-default').each(function() {
              element.attr('class','standard-selected');
          });
  
          element.attr('class','standard-selected');
        },
        error: function (xhr, ajaxOptions, thrownError) {
          pushFlash({message:"Error adding a Map Assessment", state: 'error', fadeOut: 5000});
        }
      }); 
  
      e.stopPropagation();
  
    });
  
  });