diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-14 22:31:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-14 22:31:17 +0000 |
commit | f8e75ebd58b26db6b2f3b0a6eb98f4875af470ea (patch) | |
tree | 5786e3352c5e432798bb25e9c24ae6801b2826c6 /modules/dashboard/dashboard.js | |
parent | 3a5d7e2c88dcdbb6c56f6e137cd3d70c9e699b0c (diff) | |
download | brdo-f8e75ebd58b26db6b2f3b0a6eb98f4875af470ea.tar.gz brdo-f8e75ebd58b26db6b2f3b0a6eb98f4875af470ea.tar.bz2 |
- Patch #658034 by seutje: core should not use CSS classnames that contain an underscore.
Diffstat (limited to 'modules/dashboard/dashboard.js')
-rw-r--r-- | modules/dashboard/dashboard.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/dashboard/dashboard.js b/modules/dashboard/dashboard.js index 9f9d46855..fab91852e 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; }, |