diff --git a/misc/drupal.js b/misc/drupal.js index d7365a467c4..2256343ebb9 100644 --- a/misc/drupal.js +++ b/misc/drupal.js @@ -1,4 +1,3 @@ - var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} }; /** @@ -265,11 +264,14 @@ Drupal.ahahError = function(xmlhttp, uri) { // Global Killswitch on the element $(document.documentElement).addClass('js'); +// Allow batch operations to run using JS. +document.cookie = 'has_js=1; path=/batch'; // Attach all behaviors. $(document).ready(function() { Drupal.attachBehaviors(this); }); + /** * The default themes. */