From b1e895f85072f7e2ee22582858c60301e9b8008d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 25 Jun 2008 07:45:03 +0000 Subject: - 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(-) (limited to 'misc') diff --git a/misc/drupal.js b/misc/drupal.js index d92302152..08e720ca0 100644 --- a/misc/drupal.js +++ b/misc/drupal.js @@ -266,7 +266,7 @@ Drupal.ahahError = function(xmlhttp, uri) { // Global Killswitch on the element if (Drupal.jsEnabled) { // Global Killswitch on the element - document.documentElement.className = 'js'; + $(document.documentElement).addClass('js'); // 'js enabled' cookie document.cookie = 'has_js=1; path=/'; // Attach all behaviors. -- cgit v1.2.3