From 519bceb8aa50510d528a4d97c1861a7191d260c8 Mon Sep 17 00:00:00 2001 From: fisharebest Date: Mon, 13 Aug 2012 17:11:49 +0000 Subject: Temporarily disable Modernizr.load() - it breaks some modal dialog boxes, such as block_edit.php --- library/WT/Controller/Base.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'library/WT/Controller/Base.php') diff --git a/library/WT/Controller/Base.php b/library/WT/Controller/Base.php index 97d3907c4c..69b7ce2aaa 100644 --- a/library/WT/Controller/Base.php +++ b/library/WT/Controller/Base.php @@ -162,6 +162,10 @@ class WT_Controller_Base { // We've collected up Javascript fragments while rendering the page. // Now display them. public function getJavascript() { + // Modernizr.load() doesn't seem to work well with AJAX responses. + // Temporarily disable this while we investigate + $TMP_HTML=''; + $html=''; // Insert the high priority scripts before external resources if ($this->inline_javascript[self::JS_PRIORITY_HIGH]) { @@ -177,6 +181,7 @@ class WT_Controller_Base { $load_js=array(); foreach (array_keys($this->external_javascript) as $script_name) { $load_js[]='"'.$script_name.'"'; + $TMP_HTML.=''; } $load_js='[' . implode(',', $load_js) . ']'; @@ -198,6 +203,7 @@ class WT_Controller_Base { ); $this->external_javascript=array(); + return $TMP_HTML.''; return $html.''; } -- cgit v1.3