aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/groups/views/default/forum/topicposts.php4
-rw-r--r--mod/reportedcontent/views/default/reportedcontent/listing.php4
-rw-r--r--mod/riverdashboard/views/default/riverdashboard/sitemessage.php8
-rw-r--r--views/default/css.php17
-rw-r--r--views/default/js/initialise_elgg.php7
5 files changed, 27 insertions, 13 deletions
diff --git a/mod/groups/views/default/forum/topicposts.php b/mod/groups/views/default/forum/topicposts.php
index 07bd6d028..85f2d62ad 100644
--- a/mod/groups/views/default/forum/topicposts.php
+++ b/mod/groups/views/default/forum/topicposts.php
@@ -62,8 +62,8 @@
));
//display an edit link that will open up an edit area
- echo " <a class=\"manifest_details\">".elgg_echo('edit')."</a>";
- echo "<div class=\"manifest_file\">";
+ echo " <a class=\"collapsibleboxlink\">".elgg_echo('edit')."</a>";
+ echo "<div class=\"collapsible_box\">";
//get the edit form and details
$submit_input = elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('save')));
$text_textarea = elgg_view('input/longtext', array('internalname' => 'postComment'.$vars['entity']->id, 'value' => $vars['entity']->value));
diff --git a/mod/reportedcontent/views/default/reportedcontent/listing.php b/mod/reportedcontent/views/default/reportedcontent/listing.php
index 57628ba19..3ba4f5a52 100644
--- a/mod/reportedcontent/views/default/reportedcontent/listing.php
+++ b/mod/reportedcontent/views/default/reportedcontent/listing.php
@@ -25,8 +25,8 @@
echo "<a class=\"delete_report_button\" href=\"" . $vars['url'] . "action/reportedcontent/delete?item=" . $report->guid . "\" onclick=\"return confirm('" . elgg_echo('reportedcontent:areyousure') . "')\">" . elgg_echo('reportedcontent:delete') . "</a></p>";
echo "<p class=\"reportedcontent_detail\"><b>" . elgg_echo('reportedcontent:by') . ": </b><a href=\"{$user_url}\">" . $user . "</a>, " . friendly_time($report->time_created) . "</p>";
echo "<p class=\"reportedcontent_detail\"><b>" . elgg_echo('reportedcontent:objecttitle') . ": </b>" . $report->title . "</p>";
- echo "<p><a class=\"manifest_details\">" . elgg_echo('reportedcontent:moreinfo') . "</a></p>";
- echo "<div class=\"manifest_file\">";
+ echo "<p><a class=\"collapsibleboxlink\">" . elgg_echo('reportedcontent:moreinfo') . "</a></p>";
+ echo "<div class=\"collapsible_box\">";
echo "<p class=\"reportedcontent_detail\"><b>" . elgg_echo('reportedcontent:objecturl') . ": </b><a href=\"{$report->address}\">" . elgg_echo('reportedcontent:visit') . "</a></p>";
echo "<p class=\"reportedcontent_detail\"><b>" . elgg_echo('reportedcontent:reason') . ": </b>" .$report->description . "</p>";
echo "</div></div>";
diff --git a/mod/riverdashboard/views/default/riverdashboard/sitemessage.php b/mod/riverdashboard/views/default/riverdashboard/sitemessage.php
index c287ebb3f..cc2db4c34 100644
--- a/mod/riverdashboard/views/default/riverdashboard/sitemessage.php
+++ b/mod/riverdashboard/views/default/riverdashboard/sitemessage.php
@@ -54,8 +54,8 @@
$submit_input = elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('save')));
$form_body = <<<EOT
- <p><a class="manifest_details">{$link}</a></p>
- <div class="manifest_file">
+ <p><a class="collapsibleboxlink">{$link}</a></p>
+ <div class="collapsible_box">
{$input_area}<br />{$submit_input}
</div>
@@ -81,8 +81,8 @@ EOT;
$submit_input = elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('save')));
$form_body = <<<EOT
- <p><a class="manifest_details">{$link}</a></p>
- <div class="manifest_file">
+ <p><a class="collapsibleboxlink">{$link}</a></p>
+ <div class="collapsible_box">
{$input_area}<br />{$submit_input}
</div>
EOT;
diff --git a/views/default/css.php b/views/default/css.php
index 261278aa0..fe6103a55 100644
--- a/views/default/css.php
+++ b/views/default/css.php
@@ -1232,6 +1232,9 @@ table.search_gallery {
cursor:pointer;
font-size:80%;
}
+.manifest_file {
+ display:none;
+}
.plugin_details a.pluginsettings_link {
cursor:pointer;
font-size:80%;
@@ -2019,6 +2022,16 @@ a.toggle_customise_edit_panel:hover {
font-size:1.35em;
line-height:1.2em;
}
+.collapsible_box {
+ background:#F5F5F5;
+ padding:5px 10px 5px 10px;
+ margin:4px 0 4px 0;
+ display:none;
+}
+a.collapsibleboxlink {
+ cursor:pointer;
+ font-size:80%;
+}
#sidebar_page_tree {
margin:10px;
}
@@ -2131,10 +2144,6 @@ a.toggle_customise_edit_panel:hover {
margin:0 0 20px 0;
}
-.manifest_file {
- display:none;
-}
-
/* force tinyMCE editor initial width for safari */
.mceLayout {
width:683px;
diff --git a/views/default/js/initialise_elgg.php b/views/default/js/initialise_elgg.php
index 776f6ff7f..c5a2864f4 100644
--- a/views/default/js/initialise_elgg.php
+++ b/views/default/js/initialise_elgg.php
@@ -16,7 +16,7 @@ $(document).ready(function () {
return false;
});
- // toggle plugin's settings nad more info on admin tools admin
+ // toggle plugin's settings and more info on admin tools admin
$('a.pluginsettings_link').click(function () {
$(this.parentNode.parentNode).children("[class=pluginsettings]").slideToggle("fast");
return false;
@@ -25,6 +25,11 @@ $(document).ready(function () {
$(this.parentNode.parentNode).children("[class=manifest_file]").slideToggle("fast");
return false;
});
+ // reusable generic hidden panel
+ $('a.collapsibleboxlink').click(function () {
+ $(this.parentNode.parentNode).children("[class=collapsible_box]").slideToggle("fast");
+ return false;
+ });
// WIDGET GALLERY EDIT PANEL
// Sortable widgets