Mercurial > defr > drupal > core
comparison misc/drupal.js @ 7:fff6d4c8c043 6.3
Drupal 6.3
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:30:28 +0100 |
parents | 165d43f946a8 |
children |
comparison
equal
deleted
inserted
replaced
6:2cfdc3c92142 | 7:fff6d4c8c043 |
---|---|
1 // $Id: drupal.js,v 1.41.2.2 2008/02/27 19:44:44 goba Exp $ | 1 // $Id: drupal.js,v 1.41.2.3 2008/06/25 09:06:57 goba Exp $ |
2 | 2 |
3 var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} }; | 3 var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} }; |
4 | 4 |
5 /** | 5 /** |
6 * Set the variable that indicates if JavaScript behaviors should be applied | 6 * Set the variable that indicates if JavaScript behaviors should be applied |
266 } | 266 } |
267 | 267 |
268 // Global Killswitch on the <html> element | 268 // Global Killswitch on the <html> element |
269 if (Drupal.jsEnabled) { | 269 if (Drupal.jsEnabled) { |
270 // Global Killswitch on the <html> element | 270 // Global Killswitch on the <html> element |
271 document.documentElement.className = 'js'; | 271 $(document.documentElement).addClass('js'); |
272 // 'js enabled' cookie | 272 // 'js enabled' cookie |
273 document.cookie = 'has_js=1; path=/'; | 273 document.cookie = 'has_js=1; path=/'; |
274 // Attach all behaviors. | 274 // Attach all behaviors. |
275 $(document).ready(function() { | 275 $(document).ready(function() { |
276 Drupal.attachBehaviors(this); | 276 Drupal.attachBehaviors(this); |