Commit 56b9fc14 authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review
Browse files

Merge "Attachments expander in note block not working after ajaxify patch (Bug #1424512)"

parents 8432197e b00555fa
......@@ -64,6 +64,7 @@ class PluginBlocktypeTextbox extends PluginBlocktype {
list($commentcount, $comments) = ArtefactTypeComment::get_artefact_comments_for_view($artefact, $view, $instance->get('id'), true, $editing);
$smarty->assign('commentcount', $commentcount);
$smarty->assign('comments', $comments);
$smarty->assign('blockid', $instance->get('id'));
return $smarty->fetch('blocktype:textbox:content.tpl');
}
......
{$text|clean_html|safe}
{if isset($attachments)}
<table class="cb attachments fullwidth">
<table class="cb attachments fullwidth" id="blockinstance-attachments-{$blockid}">
<thead class="expandable-head">
<tr>
<td colspan="2">
......@@ -27,3 +27,6 @@
{$comments|safe}
{/if}
<script type="application/javascript">
setupExpanders($j('#blockinstance-attachments-{$blockid}'));
</script>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment