aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/wrapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/widgets/wrapper.php')
-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
}