summaryrefslogtreecommitdiff
path: root/modules/file
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-10-04 17:46:01 +0000
committerDries Buytaert <dries@buytaert.net>2010-10-04 17:46:01 +0000
commit5a23b3fdb970bb0c3e79f47ba9296455d237d9f0 (patch)
treeb9e59f7bdb1ffbbdc569c34f56980aba267ca3fa /modules/file
parenta50d47f9591d240f212b66332e25d7f2ce50369d (diff)
downloadbrdo-5a23b3fdb970bb0c3e79f47ba9296455d237d9f0.tar.gz
brdo-5a23b3fdb970bb0c3e79f47ba9296455d237d9f0.tar.bz2
- Patch #561858 by effulgentsia, sun, rfay, Nick_vh, merlinofchaos, katbailey, dereine, tstoeckler: drupal_add_js() and drupal_add_css() to work for AJAX requests too by adding lazy-load to AJAX framework.
Diffstat (limited to 'modules/file')
-rw-r--r--modules/file/file.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/file/file.module b/modules/file/file.module
index 0d7453992..69130b2f8 100644
--- a/modules/file/file.module
+++ b/modules/file/file.module
@@ -41,12 +41,14 @@ function file_menu() {
'page callback' => 'file_ajax_upload',
'delivery callback' => 'ajax_deliver',
'access arguments' => array('access content'),
+ 'theme callback' => 'ajax_base_page_theme',
'type' => MENU_CALLBACK,
);
$items['file/progress'] = array(
'page callback' => 'file_ajax_progress',
'delivery callback' => 'ajax_deliver',
'access arguments' => array('access content'),
+ 'theme callback' => 'ajax_base_page_theme',
'type' => MENU_CALLBACK,
);