Kaydet (Commit) d7848c11 authored tarafından Tim Graham's avatar Tim Graham

Fixed #25147 -- Fixed debug view copy-paste/interactive toggle.

The whitespace added in 1101467c
broke the initial comparison.
üst baa732ac
...@@ -646,7 +646,7 @@ TECHNICAL_500_TEMPLATE = (""" ...@@ -646,7 +646,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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment