aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/wrapper.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-19 03:28:41 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-19 03:28:41 +0000
commit4dc9076224a0d93f0dc078124aa9fb94a669f16c (patch)
treec4fb116cfab0dab64f92e3183012515322b04b30 /views/default/widgets/wrapper.php
parent28a52ae81a78bff05d864dce226d3b1a9517a8c3 (diff)
downloadelgg-4dc9076224a0d93f0dc078124aa9fb94a669f16c.tar.gz
elgg-4dc9076224a0d93f0dc078124aa9fb94a669f16c.tar.bz2
saving widget position after moving
git-svn-id: http://code.elgg.org/elgg/trunk@7343 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/widgets/wrapper.php')
-rw-r--r--views/default/widgets/wrapper.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/default/widgets/wrapper.php b/views/default/widgets/wrapper.php
index 51f4725b9..fd849bdee 100644
--- a/views/default/widgets/wrapper.php
+++ b/views/default/widgets/wrapper.php
@@ -8,6 +8,8 @@
$widgettypes = get_widget_types();
+$widget = $vars['entity'];
+
if ($vars['entity'] instanceof ElggObject && $vars['entity']->getSubtype() == 'widget') {
$handler = $vars['entity']->handler;
$title = $widgettypes[$vars['entity']->handler]->name;
@@ -23,7 +25,7 @@ $display_view = "widgets/$handler/view";
$edit_view = "widgets/$handler/edit";
?>
-<div class="widget draggable">
+<div class="widget draggable" id="widget_<?php echo $widget->guid; ?>">
<div class="widget_title drag_handle">
<h3>Widget Title</h3>
</div>