Fixed #32624 -- Avoided using JavaScript for "Local vars" show/hide in technical 500 debug page.
This commit is contained in:
parent
45a58c31e6
commit
1c004939d5
|
@ -16,6 +16,7 @@
|
||||||
h3 { margin:1em 0 .5em 0; }
|
h3 { margin:1em 0 .5em 0; }
|
||||||
h4 { margin:0 0 .5em 0; font-weight: normal; }
|
h4 { margin:0 0 .5em 0; font-weight: normal; }
|
||||||
code, pre { font-size: 100%; white-space: pre-wrap; }
|
code, pre { font-size: 100%; white-space: pre-wrap; }
|
||||||
|
summary { cursor: pointer; }
|
||||||
table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; }
|
table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; }
|
||||||
tbody td, tbody th { vertical-align:top; padding:2px 3px; }
|
tbody td, tbody th { vertical-align:top; padding:2px 3px; }
|
||||||
thead th {
|
thead th {
|
||||||
|
@ -40,8 +41,8 @@
|
||||||
div.context ol.context-line li span { position:absolute; right:32px; }
|
div.context ol.context-line li span { position:absolute; right:32px; }
|
||||||
.user div.context ol.context-line li { background-color:#bbb; color:#000; }
|
.user div.context ol.context-line li { background-color:#bbb; color:#000; }
|
||||||
.user div.context ol li { color:#666; }
|
.user div.context ol li { color:#666; }
|
||||||
div.commands { margin-left: 40px; }
|
div.commands, summary.commands { margin-left: 40px; }
|
||||||
div.commands a { color:#555; text-decoration:none; }
|
div.commands a, summary.commands { color:#555; text-decoration:none; }
|
||||||
.user div.commands a { color: black; }
|
.user div.commands a { color: black; }
|
||||||
#summary { background: #ffc; }
|
#summary { background: #ffc; }
|
||||||
#summary h2 { font-weight: normal; color: #666; }
|
#summary h2 { font-weight: normal; color: #666; }
|
||||||
|
@ -71,7 +72,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
hideAll(document.querySelectorAll('table.vars'));
|
|
||||||
hideAll(document.querySelectorAll('ol.pre-context'));
|
hideAll(document.querySelectorAll('ol.pre-context'));
|
||||||
hideAll(document.querySelectorAll('ol.post-context'));
|
hideAll(document.querySelectorAll('ol.post-context'));
|
||||||
hideAll(document.querySelectorAll('div.pastebin'));
|
hideAll(document.querySelectorAll('div.pastebin'));
|
||||||
|
@ -85,14 +85,6 @@
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
function varToggle(link, id) {
|
|
||||||
toggle('v' + id);
|
|
||||||
var s = link.getElementsByTagName('span')[0];
|
|
||||||
var uarr = String.fromCharCode(0x25b6);
|
|
||||||
var darr = String.fromCharCode(0x25bc);
|
|
||||||
s.textContent = s.textContent == uarr ? darr : uarr;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
function switchPastebinFriendly(link) {
|
function switchPastebinFriendly(link) {
|
||||||
s1 = "Switch to copy-and-paste view";
|
s1 = "Switch to copy-and-paste view";
|
||||||
s2 = "Switch back to interactive view";
|
s2 = "Switch back to interactive view";
|
||||||
|
@ -254,13 +246,14 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if frame.vars %}
|
{% if frame.vars %}
|
||||||
<div class="commands">
|
{% if is_email %}
|
||||||
{% if is_email %}
|
<div class="commands">
|
||||||
<h2>Local Vars</h2>
|
<h2>Local Vars</h2>
|
||||||
{% else %}
|
</div>
|
||||||
<a href="#" onclick="return varToggle(this, '{{ frame.id }}')"><span>▶</span> Local vars</a>
|
{% else %}
|
||||||
{% endif %}
|
<details>
|
||||||
</div>
|
<summary class="commands">Local vars</summary>
|
||||||
|
{% endif %}
|
||||||
<table class="vars" id="v{{ frame.id }}">
|
<table class="vars" id="v{{ frame.id }}">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -277,6 +270,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
{% if not is_email %}</details>{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue