Permalink
Browse files

Change ajax data to return js/css as strings not tags

  • Loading branch information...
1 parent 25d96d1 commit 6fb4899321e29334680e5dc42ee3ad36c42521ca @deepwinter deepwinter committed May 3, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 modules/mopcore/classes/controller/ajax.php
@@ -51,20 +51,20 @@ public function action_html($subRequestUri)
$subRequest = Request::Factory($subRequestUri);
$html = $subRequest->execute()->body();
- $cssResources = array();
+ $cssResources = ();
foreach($this->resources['librarycss'] as $css){
- $cssResources[] = HTML::style($css);
+ $cssResources[] = $css;
}
foreach($this->resources['css'] as $css){
- $cssResources[] = HTML::style($css);
+ $cssResources[] = $css;
}
$jsResources = array();
foreach($this->resources['libraryjs'] as $js){
- $jsResources[] = HTML::script($js);
+ $jsResources[] = $js;
}
foreach($this->resources['js'] as $js){
- $jsResources[] = HTML::script($js);
+ $jsResources[] = $js;
}

0 comments on commit 6fb4899

Please sign in to comment.