From f8e75ebd58b26db6b2f3b0a6eb98f4875af470ea Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Mon, 14 Dec 2009 22:31:17 +0000 Subject: [PATCH] - Patch #658034 by seutje: core should not use CSS classnames that contain an underscore. --- modules/dashboard/dashboard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/dashboard/dashboard.js b/modules/dashboard/dashboard.js index 9f9d468553f8..fab91852ead6 100644 --- a/modules/dashboard/dashboard.js +++ b/modules/dashboard/dashboard.js @@ -23,7 +23,7 @@ Drupal.behaviors.dashboard = { // If the region is empty if ($('.block', this).length == 0) { // Check if we are in customize mode and grab the correct empty text - if ($('#dashboard').hasClass('customize_mode')) { + if ($('#dashboard').hasClass('customize-mode')) { empty_text = Drupal.settings.dashboard.emptyRegionTextActive; } else { empty_text = Drupal.settings.dashboard.emptyRegionTextInactive; @@ -44,7 +44,7 @@ Drupal.behaviors.dashboard = { * Enter "customize" mode by displaying disabled blocks. */ enterCustomizeMode: function () { - $('#dashboard').addClass('customize_mode'); + $('#dashboard').addClass('customize-mode'); Drupal.behaviors.dashboard.addPlaceholders(); // Hide the customize link $('#dashboard .customize .action-links').hide(); @@ -56,7 +56,7 @@ Drupal.behaviors.dashboard = { * Exit "customize" mode by simply forcing a page refresh. */ exitCustomizeMode: function () { - $('#dashboard').removeClass('customize_mode'); + $('#dashboard').removeClass('customize-mode'); Drupal.behaviors.dashboard.addPlaceholders(); location.href = Drupal.settings.dashboard.dashboard; }, -- GitLab