[VarDumper] Fix toggle action to see source excerpt
This commit is contained in:
parent
2c4b5e5bbe
commit
10f713385e
@ -85,7 +85,7 @@
|
||||
{{ dump.name }}
|
||||
{% endif %}
|
||||
line {{ dump.line }}:
|
||||
<a onclick="Sfdump.toggle(this)">▶</a>
|
||||
<a onclick="var s = this.nextElementSibling; if ('sf-dump-compact' == s.className) {this.innerHTML = '▼'; s.className = 'sf-dump-expanded';} else {this.innerHTML = '▶'; s.className = 'sf-dump-compact';}">▶</a>
|
||||
<span class="sf-dump-compact">
|
||||
{% if dump.fileExcerpt %}{{ dump.fileExcerpt|raw }}{% else %}{{ dump.file|file_excerpt(dump.line) }}{% endif %}
|
||||
</span>
|
||||
|
Reference in New Issue
Block a user