mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 23:25:30 +02:00
Merge branch 'ticket/cs278/7332' into develop-olympus
* ticket/cs278/7332: [ticket/7332] Redirect users back to post details when performing actions. [ticket/7332] Collapse post details content down to a maximum of 300px heigh
This commit is contained in:
commit
4222510e9c
@ -176,7 +176,7 @@ function mcp_post_details($id, $mode, $action)
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'U_MCP_ACTION' => "$url&i=main&quickmod=1", // Use this for mode paramaters
|
||||
'U_MCP_ACTION' => "$url&i=main&quickmod=1&mode=post_details", // Use this for mode paramaters
|
||||
'U_POST_ACTION' => "$url&i=$id&mode=post_details", // Use this for action parameters
|
||||
'U_APPROVE_ACTION' => append_sid("{$phpbb_root_path}mcp.$phpEx", "i=queue&p=$post_id&f={$post_info['forum_id']}"),
|
||||
|
||||
|
@ -54,6 +54,8 @@
|
||||
</ul>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<span class="right-box clear" id="expand"><a href="#post_details" onclick="viewableArea(getElementById('post_details'), true); var rev_text = getElementById('expand').getElementsByTagName('a').item(0).firstChild; if (rev_text.data == '{LA_EXPAND_VIEW}'){rev_text.data = '{LA_COLLAPSE_VIEW}'; } else if (rev_text.data == '{LA_COLLAPSE_VIEW}'){rev_text.data = '{LA_EXPAND_VIEW}'}; return false;">{L_EXPAND_VIEW}</a></span>
|
||||
|
||||
<h3><a href="{U_VIEW_POST}">{POST_SUBJECT}</a></h3>
|
||||
<!-- IF S_PM -->
|
||||
<p class="author">
|
||||
@ -84,7 +86,7 @@
|
||||
</p>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<div class="content">
|
||||
<div class="content" id="post_details">
|
||||
{POST_PREVIEW}
|
||||
</div>
|
||||
|
||||
|
@ -298,6 +298,15 @@ div[class].topic-actions {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* MCP Post details
|
||||
----------------------------------------*/
|
||||
#post_details
|
||||
{
|
||||
/* This will only work in IE7+, plus the others */
|
||||
overflow: auto;
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
/* Content container styles
|
||||
----------------------------------------*/
|
||||
.content {
|
||||
|
Loading…
x
Reference in New Issue
Block a user