aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-01 09:16:11 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-01 09:16:11 +0000
commitc705db28d10e9fecda0e16e0487a7cfd85e82e3a (patch)
tree5d4f7020ecdcfbddb4faa851537912b54d6edf76 /views/default/widgets
parent56b1375f2e9bd0302a32eb78071eb6c8756c0936 (diff)
downloadelgg-c705db28d10e9fecda0e16e0487a7cfd85e82e3a.tar.gz
elgg-c705db28d10e9fecda0e16e0487a7cfd85e82e3a.tar.bz2
Widgets now load after the main page
git-svn-id: https://code.elgg.org/elgg/trunk@1214 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/widgets')
-rw-r--r--views/default/widgets/wrapper.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php
index 99deda834..4f719e124 100644
--- a/views/default/widgets/wrapper.php
+++ b/views/default/widgets/wrapper.php
@@ -61,12 +61,14 @@
echo "<div id=\"widgetcontent{$vars['entity']->getGUID()}\">";
- } // end if callback != "true"
+ } else { // end if callback != "true"
- echo elgg_view("widgets/{$handler}/view",$vars);
+ echo elgg_view("widgets/{$handler}/view",$vars);
+
+ }
if ($callback != "true") {
-
+ echo elgg_view('ajax/loader');
echo "</div>";
?>
@@ -74,6 +76,14 @@
</div><!-- /.collapsable_box -->
</div>
+<script type="text/javascript">
+$(document).ready(function() {
+
+ $("#widgetcontent<?php echo $vars['entity']->getGUID(); ?>").load("<?php echo $vars['url']; ?>pg/view/<?php echo $vars['entity']->getGUID(); ?>?shell=no&username=<?php echo page_owner_entity()->username; ?>&context=<?php echo get_context(); ?>&callback=true");
+
+});
+</script>
+
<?php
}