diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-23 16:37:26 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-23 16:37:26 +0000 |
commit | 4b225fc844aec7dcce4692e8ac178cda7bd897fe (patch) | |
tree | ac67b41c8d77a4c2fa3594e0020f068fc53ba4d9 /views | |
parent | 21fd3683c1436ad71d01aa2137e8ff6fcf977676 (diff) | |
download | elgg-4b225fc844aec7dcce4692e8ac178cda7bd897fe.tar.gz elgg-4b225fc844aec7dcce4692e8ac178cda7bd897fe.tar.bz2 |
Widgets are now loaded as separate JS scripts
git-svn-id: https://code.elgg.org/elgg/trunk@1070 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r-- | views/default/canvas/layouts/widgets.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php index 1ef87d2f6..403ea8f96 100644 --- a/views/default/canvas/layouts/widgets.php +++ b/views/default/canvas/layouts/widgets.php @@ -174,7 +174,13 @@ if (is_array($area2widgets) && sizeof($area2widgets) > 0) foreach($area2widgets as $widget) { - echo elgg_view_entity($widget); + // echo elgg_view_entity($widget); + +?> + + <script type="text/javascript" src="<?php echo $vars['url']; ?>pg/view/<?php echo $widget->getGUID(); ?>?view=js"></script> + +<? } ?> |