mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
[1.8.x] Fixed #25147 -- Fixed debug view copy-paste/interactive toggle.
The whitespace added in1101467ce0broke the initial comparison. Backport ofd7848c11e0from master
This commit is contained in:
@@ -710,7 +710,7 @@ TECHNICAL_500_TEMPLATE = ("""
|
||||
function switchPastebinFriendly(link) {
|
||||
s1 = "Switch to copy-and-paste 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');
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user