diff --git a/core/modules/views_ui/js/views-admin.js b/core/modules/views_ui/js/views-admin.js
index 9dbe6a4..796512e 100644
--- a/core/modules/views_ui/js/views-admin.js
+++ b/core/modules/views_ui/js/views-admin.js
@@ -1098,8 +1098,8 @@ Drupal.viewsUi.resizeModal = function (e, no_shrink) {
};
-Drupal.behaviors.handlerRemoveLink = {};
-Drupal.behaviors.handlerRemoveLink.attach = function(context) {
+Drupal.behaviors.viewsUIhandlerRemoveLink = {};
+Drupal.behaviors.viewsUIhandlerRemoveLink.attach = function(context) {
var $ = jQuery;
/**
@@ -1108,20 +1108,18 @@ Drupal.behaviors.handlerRemoveLink.attach = function(context) {
*/
$('a.views-remove-link', context).once('views-processed').click(function(event) {
var id = $(this).attr('id').replace('views-remove-link-', '');
- $('#views-row-' + id).hide();
- $('#views-removed-' + id).attr('checked', true);
+ $('#views-row-' + id, context).hide();
+ $('#views-removed-' + id, context).attr('checked', true);
event.preventDefault();
});
- /**
- * Handle display deletion by looking for the hidden checkbox and hiding the
- * row.
- */
- $('a.display-remove-link', context).addClass('display-processed').click(function(event) {
- var id = $(this).attr('id').replace('display-remove-link-', '');
- $('#display-row-' + id, context).hide();
- $('#display-removed-' + id, context).attr('checked', true);
- event.preventDefault();
+ // Handle display deletion by looking for the hidden checkbox and hiding the
+ // row.
+ $('a.display-remove-link', context).once('display').click(function(event) {
+ var id = $(this).attr('id').replace('display-remove-link-', '');
+ $('#display-row-' + id, context).hide();
+ $('#display-removed-' + id, context).attr('checked', true);
+ event.preventDefault();
});
};
diff --git a/core/modules/views_ui/views_ui.theme.inc b/core/modules/views_ui/views_ui.theme.inc
index 841f15c..1a3e596 100644
--- a/core/modules/views_ui/views_ui.theme.inc
+++ b/core/modules/views_ui/views_ui.theme.inc
@@ -289,7 +289,7 @@ function theme_views_ui_rearrange_filter_form(&$vars) {
$form['filters'][$id]['group']['#attributes']['class'] = array('views-group-select views-group-select-' . $group_id);
$row[] = drupal_render($form['filters'][$id]['group']);
$form['filters'][$id]['removed']['#attributes']['class'][] = 'js-hide';
- $row[] = drupal_render($form['filters'][$id]['removed']) . l('' . t('Remove') . '', 'javascript:void()', array('attributes' => array('id' => 'views-remove-link-' . $id, 'class' => array('views-hidden', 'views-button-remove', 'views-groups-remove-link', 'views-remove-link'), 'alt' => t('Remove this item'), 'title' => t('Remove this item')), 'html' => TRUE));
+ $row[] = drupal_render($form['filters'][$id]['removed']) . l('' . t('Remove') . '', '', array('attributes' => array('id' => 'views-remove-link-' . $id, 'class' => array('views-hidden', 'views-button-remove', 'views-groups-remove-link', 'views-remove-link'), 'alt' => t('Remove this item'), 'title' => t('Remove this item')), 'html' => TRUE));
$row = array('data' => $row, 'class' => array('draggable'), 'id' => 'views-row-' . $id);
if ($group_id !== 'ungroupable') {