aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-02 00:55:08 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-02 00:55:08 +0000
commitd203da69164653ab03a956a5ff2af3d3fcf8b4ae (patch)
tree20518bf5862eb174db77e1e12188703f55f9298c /views
parenta9a06367f0f530d03ffa330a449cc635831b081f (diff)
downloadelgg-d203da69164653ab03a956a5ff2af3d3fcf8b4ae.tar.gz
elgg-d203da69164653ab03a956a5ff2af3d3fcf8b4ae.tar.bz2
Widget collapse button uses elgg-toggler pattern
git-svn-id: http://code.elgg.org/elgg/trunk@8562 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/default/object/widget.php2
-rw-r--r--views/default/object/widget/elements/controls.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/views/default/object/widget.php b/views/default/object/widget.php
index ce2dc33da..f84c44e1c 100644
--- a/views/default/object/widget.php
+++ b/views/default/object/widget.php
@@ -61,7 +61,7 @@ HEADER;
$widget_body = <<<BODY
$edit_area
- <div class="elgg-widget-content">
+ <div class="elgg-widget-content" id="elgg-widget-content-$widget->guid">
$content
</div>
BODY;
diff --git a/views/default/object/widget/elements/controls.php b/views/default/object/widget/elements/controls.php
index ba30d2d4d..5b794c1f7 100644
--- a/views/default/object/widget/elements/controls.php
+++ b/views/default/object/widget/elements/controls.php
@@ -11,8 +11,8 @@ $show_edit = elgg_extract('show_edit', $vars, true);
$params = array(
'text' => ' ',
- 'href' => "#",
- 'class' => 'elgg-widget-collapse-button',
+ 'href' => "#elgg-widget-content-$widget->guid",
+ 'class' => 'elgg-widget-collapse-button elgg-toggler',
);
$collapse_link = elgg_view('output/url', $params);