diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-20 17:07:20 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-20 17:07:20 +0000 |
commit | 26ca356ea7bb4521d763204fb68d0cba8086684b (patch) | |
tree | 03b123ed40eb6fc0b50cd8523ea1d8ec7ee6b6e3 /views/default/widgets/wrapper.php | |
parent | 078d930d12f450f32f1b7d1976e5d3fe0aa01808 (diff) | |
download | elgg-26ca356ea7bb4521d763204fb68d0cba8086684b.tar.gz elgg-26ca356ea7bb4521d763204fb68d0cba8086684b.tar.bz2 |
Fixes #472 handling interactive adding/deleting of widgets with single/multiple instance constraints
git-svn-id: http://code.elgg.org/elgg/trunk@7385 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/widgets/wrapper.php')
-rw-r--r-- | views/default/widgets/wrapper.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php index 6963989f9..a8651e666 100644 --- a/views/default/widgets/wrapper.php +++ b/views/default/widgets/wrapper.php @@ -23,8 +23,11 @@ if (!$title) { $can_edit = $widget->canEdit(); +$widget_id = "widget_$widget->guid"; +$widget_instance = "widget_instance_$handler"; + ?> -<div class="widget draggable" id="widget_<?php echo $widget->guid; ?>"> +<div class="widget draggable <?php echo $widget_instance?>" id="<?php echo $widget_id; ?>"> <div class="widget_title drag_handle"> <h3><?php echo $title; ?></h3> <?php |