aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/wrapper.php
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-29 21:07:00 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-29 21:07:00 +0000
commita4610b309edc583ec4f4b34fb8f8f712f898e5c2 (patch)
tree5779645df70110e906c7f5428d46d9c7a7b0e0b0 /views/default/widgets/wrapper.php
parenta0f9057a19471da8c5e05a1d58a8c82c5f17a413 (diff)
downloadelgg-a4610b309edc583ec4f4b34fb8f8f712f898e5c2.tar.gz
elgg-a4610b309edc583ec4f4b34fb8f8f712f898e5c2.tar.bz2
individual widgets state now saved in cookies
git-svn-id: https://code.elgg.org/elgg/trunk@1587 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/widgets/wrapper.php')
-rw-r--r--views/default/widgets/wrapper.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php
index 274f3f35d..4fc752af9 100644
--- a/views/default/widgets/wrapper.php
+++ b/views/default/widgets/wrapper.php
@@ -66,7 +66,7 @@
echo elgg_view("widgets/{$handler}/view",$vars);
?>
-
+
<script language="javascript">
$(document).ready(function(){
setup_avatar_menu();
@@ -85,7 +85,7 @@
?>
</div><!-- /.collapsable_box_content -->
- </div><!-- /.collapsable_box -->
+ </div><!-- /.collapsable_box -->
</div>
<script type="text/javascript">
@@ -93,6 +93,11 @@ $(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");
+ // run function to check for widgets collapsed/expanded state
+ var forWidget = "widget<?php echo $vars['entity']->getGUID(); ?>";
+ widget_state(forWidget);
+
+
});
</script>