Modify ↓
#12874 closed defect (fixed)
Button to switch interactive/plain-text view doesn't work if preferred language is non-English
| Reported by: | Jun Omae | Owned by: | Jun Omae |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.3.2 |
| Component: | i18n | Version: | 1.3dev |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: |
Fixed switch to plain-text/interactive mode in error.html when preferred language is not English. |
||
Description
Because this.value.indexOf("interactive") < 0 doesn't work as expected if preferred language is non-English, at trunk/trac/templates/error.html@15964:39,40,45#L38:
| Line | |
|---|---|
| 38 | $("#tbtoggle").click(function() { |
| 39 | if (this.value.indexOf("interactive") < 0) { |
| 40 | this.value = j_("Switch to interactive view"); |
| 41 | $("#traceback ul").fadeOut("fast", function() { |
| 42 | $("#traceback pre").fadeIn("fast"); |
| 43 | }); |
| 44 | } else { |
| 45 | this.value = j_("Switch to plain text view"); |
| 46 | $("#traceback pre").fadeOut("fast", function() { |
| 47 | $("#traceback ul").fadeIn("fast"); |
| 48 | }); |
| 49 | } |
| 50 | return false; |
| 51 | }); |
Attachments (0)
Change History (5)
comment:1 by , 8 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , 8 years ago
| Release Notes: | modified (diff) |
|---|---|
| Summary: | Button to switch intractive/plain-text view doesn't work if preferred language is non-English → Button to switch interactive/plain-text view doesn't work if preferred language is non-English |
comment:4 by , 8 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Thanks for the viewing. Committed in [16155].
comment:5 by , 6 years ago
Note:
See TracTickets
for help on using tickets.



Proposed changes in [9186ecf40/jomae.git] (jomae.git@t12874).