From 5a23b3fdb970bb0c3e79f47ba9296455d237d9f0 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 4 Oct 2010 17:46:01 +0000 Subject: - 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. --- modules/file/file.module | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/file/file.module') 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, ); -- cgit v1.2.3