From 569ede574f2db14d7359b42e1ccbf5772a4554fb Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 22 Jun 2007 08:46:16 +0000 Subject: #115139: Add centralized json handler (and send text/javascript content-type header). --- modules/upload/upload.module | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/upload/upload.module') diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 460d4726a..32e337752 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -741,7 +741,10 @@ function upload_js() { // @todo: Put status messages inside wrapper, instead of above so they do not // persist across ajax reloads. $output = theme('status_messages') . drupal_render($form); + // We send the updated file attachments form. + // Don't call drupal_json(). upload.js uses an iframe and + // the header output by drupal_json() causes problems in some browsers. print drupal_to_js(array('status' => TRUE, 'data' => $output)); exit; } -- cgit v1.2.3