From b1e895f85072f7e2ee22582858c60301e9b8008d Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Wed, 25 Jun 2008 07:45:03 +0000 Subject: [PATCH] - Patch #272636 by dvessel: drupal.js overwrites class of html element, rather than adding to it. --- misc/drupal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/drupal.js b/misc/drupal.js index d92302152c75..08e720ca0bd4 100644 --- a/misc/drupal.js +++ b/misc/drupal.js @@ -266,7 +266,7 @@ Drupal.ahahError = function(xmlhttp, uri) { // Global Killswitch on the <html> element if (Drupal.jsEnabled) { // Global Killswitch on the <html> element - document.documentElement.className = 'js'; + $(document.documentElement).addClass('js'); // 'js enabled' cookie document.cookie = 'has_js=1; path=/'; // Attach all behaviors. -- GitLab