anchor.diff:  				};
   
   
  +
  +				var actionToggleActivation = function (record) {
  +					if (record) {
  +						var alertId = record.data.alertId;
  +						var active = record.data.activeStatus;
  +						if (active === 'A') {
  +							var method = "DELETE";
  +							var url = '/openstorefront/api/v1/resource/alerts/' + alertId;
  +							var what = "deactivate";
  +						} else if (active === 'I') {
  +							var method = "POST";
  +							var url = '/openstorefront/api/v1/resource/alerts/' + alertId + "/activate";
  +							var what = "activate";
  +						} else {
  +							Ext.MessageBox.alert("Record Not Recognized", "Error: Record is not active or inactive.");
  +							return false;
  +						}
  +
  +						Ext.Ajax.request({
  +							url: url,
  +							method: method,
  +							success: function (response, opts) {
  +								var message = 'Successfully ' + what + 'd "' + record.data.name + '"';
  +								Ext.toast(message, '', 'tr');
  +								// The ordering below is necessary
  +								// to get Ext to disable the buttons.
  +								Ext.getCmp('alertGrid').getStore().load();
  +								Ext.getCmp('alertGrid').getSelectionModel().deselectAll();
  +								Ext.getCmp('alertGrid-tools-toggleActivation').disable();
  +								Ext.getCmp('alertGrid-tools-edit').disable();
  +							},
  +							failure: function (response, opts) {
  +								Ext.MessageBox.alert('Failed to' + what,
  +								"Error: Could not " + what + ' "' + record.data.name + '"' );
  +							}
  +						});
  +
  +					} else {
  +						Ext.MessageBox.alert("No Record Selected", "Error: You have not selected a record.");
  +					}
  +				};
   				Ext.create('Ext.container.Viewport', {
   					layout: 'fit',
   					items: [
  
positive.code: 														type: 'ajax',
  														url: '../api/v1/resource/alerts?status=A'
  													});
  												} else {
  													store.setProxy({
  														id: 'alertStoreProxy',
  														type: 'ajax',
  														url: '../api/v1/resource/alerts?status=I'
  													});
  												}
  												store.load();
  												Ext.getCmp('alertGrid').getSelectionModel().deselectAll();
  												Ext.getCmp('alertGrid-tools-edit').setDisabled(true);
  											}
  										}
  									},
  
negative.code: 										var record = Ext.getCmp('alertGrid').getSelection()[0];
  										actionEditAlertForm(record);
  									}
  								},
  								{
  									text: 'Deactivate',
  									id: 'alertGrid-tools-toggleActivation',
  									disabled: true,
  									scale: 'medium',
  									handler: function () {
  										var record = Ext.getCmp('alertGrid').getSelection()[0];
  										actionToggleActivation(record);
  									}
  								}
  
  							]
  						}
  					],
  