Skip to content
Snippets Groups Projects
Commit b1e895f8 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #272636 by dvessel: drupal.js overwrites class of html element, rather than adding to it.

parent 69a7d806
No related branches found
No related tags found
No related merge requests found
...@@ -266,7 +266,7 @@ Drupal.ahahError = function(xmlhttp, uri) { ...@@ -266,7 +266,7 @@ Drupal.ahahError = function(xmlhttp, uri) {
// Global Killswitch on the <html> element // Global Killswitch on the <html> element
if (Drupal.jsEnabled) { if (Drupal.jsEnabled) {
// Global Killswitch on the <html> element // Global Killswitch on the <html> element
document.documentElement.className = 'js'; $(document.documentElement).addClass('js');
// 'js enabled' cookie // 'js enabled' cookie
document.cookie = 'has_js=1; path=/'; document.cookie = 'has_js=1; path=/';
// Attach all behaviors. // Attach all behaviors.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment