mirror of
https://github.com/django/django.git
synced 2025-07-21 01:59:26 +00:00
[1.8.x] Fixed #25147 -- Fixed debug view copy-paste/interactive toggle.
The whitespace added in 1101467ce0756272a54f4c7bc65c4c335a94111b broke the initial comparison. Backport of d7848c11e008ddeb036a95d389caa3b2c97b795e from master
This commit is contained in:
parent
beb68b2a83
commit
2cad91cac6
@ -710,7 +710,7 @@ TECHNICAL_500_TEMPLATE = ("""
|
|||||||
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";
|
||||||
link.innerHTML = link.innerHTML == s1 ? s2: s1;
|
link.innerHTML = link.innerHTML.trim() == s1 ? s2: s1;
|
||||||
toggle('browserTraceback', 'pastebinTraceback');
|
toggle('browserTraceback', 'pastebinTraceback');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user