Skip to content

Commit

Permalink
Fixed return of css,js
Browse files Browse the repository at this point in the history
  • Loading branch information
Deepwinter committed May 3, 2011
1 parent 7daa590 commit ae0d75e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/mopcore/classes/controller/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ public function action_html($uri)
$cssResources = array();
array_push($cssResources, $this->resources['librarycss']);
array_push($cssResources, $this->resources['css']);
$cssResources = array_values($cssResources);

$jsResources = array();
array_push($jsResources, $this->resources['libraryjs']);
array_push($jsResources, $this->resources['js']);
$jsResources = array_values($jsResources);

$ajaxResponse = array(
'response'=>array(
Expand Down Expand Up @@ -103,10 +105,12 @@ public function action_compound($uri)
$cssResources = array();
array_push($cssResources, $this->resources['librarycss']);
array_push($cssResources, $this->resources['css']);
$cssResources = array_values($cssResources);

$jsResources = array();
array_push($jsResources, $this->resources['libraryjs']);
array_push($jsResources, $this->resources['js']);
$jsResources = array_values($jsResources);


$compoundResponse = array(
Expand Down

0 comments on commit ae0d75e

Please sign in to comment.