summaryrefslogtreecommitdiff
path: root/misc/drupal.js
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-06-25 07:45:03 +0000
committerDries Buytaert <dries@buytaert.net>2008-06-25 07:45:03 +0000
commitb1e895f85072f7e2ee22582858c60301e9b8008d (patch)
tree9876e2ec9374c42e76f785c64356d8f504ee72ec /misc/drupal.js
parent69a7d806073640976b8593725bef0dd35dcdd6b8 (diff)
downloadbrdo-b1e895f85072f7e2ee22582858c60301e9b8008d.tar.gz
brdo-b1e895f85072f7e2ee22582858c60301e9b8008d.tar.bz2
- Patch #272636 by dvessel: drupal.js overwrites class of html element, rather than adding to it.
Diffstat (limited to 'misc/drupal.js')
-rw-r--r--misc/drupal.js2
1 files changed, 1 insertions, 1 deletions
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 <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.