diff --git a/modules/dashboard/dashboard.js b/modules/dashboard/dashboard.js
index 9f9d468553f84110752218557f903cf183f52d0e..fab91852ead681b0fa3145db2b69abae7da2dbab 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;
   },