[1.8.x] Fixed #25147 -- Fixed debug view copy-paste/interactive toggle.

The whitespace added in 1101467ce0
broke the initial comparison.

Backport of d7848c11e0 from master
This commit is contained in:
Tim Graham 2015-07-20 11:42:25 -04:00
parent beb68b2a83
commit 2cad91cac6
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}