View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001648 | AJAX/JS | Bug Report - Interface | public | 2009-08-11 22:06 | 2009-08-12 22:26 |
| Reporter | ninjamask | Assigned To | fahrenheit | ||
| Priority | normal | Severity | tweak | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Platform | Intel Core 2 Duo E7300 | OS | Windows Vista | OS Version | SP1 32 Bit |
| Summary | 0001648: Guises with brackets in the name are wrong presentated in the dropdown menu | ||||
| Description | Guises with brackets in the name are wrong presentated in the dropdown menu | ||||
| Steps To Reproduce | http://anidb.net/perl-bin/animedb.pl?show=character&charid=8227 Main name: Federal Bureau of Investigation (Conan) dropdown menu: Federal Bureau of Investigation Conan )( | ||||
| Tags | No tags attached. | ||||
| Attached Files | char.diff (519 bytes)
--- character.old.js 2009-08-12 22:09:06.000000000 +0300
+++ character.js 2009-08-12 22:08:41.000000000 +0300
@@ -161,7 +161,8 @@ function prepPageEntity() {
div.id = 'section_'+i;
var nameTR = getElementsByClassName(div.getElementsByTagName('tr'),'mainname',true)[0];
if (nameTR) {
- var text = dig_text(nameTR.getElementsByTagName('td')[0]).replace('(','');
+ var text = dig_text(nameTR.getElementsByTagName('td')[0]);
+ text = text.substr(0, text.length);
charNames.push(text);
}
}
| ||||
|
|
This should fix it. Edit: oops, not this. Looks like i can't remove files. Anyway "text.length" have to be "text.length-1". Edit2: Or you can still use replace() method with regexp /(\()[^\(]*$/. |
|
|
thanks for the diff noec. fixed |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2009-08-11 22:06 | ninjamask | New Issue | |
| 2009-08-11 22:06 | ninjamask | Status | new => assigned |
| 2009-08-11 22:06 | ninjamask | Assigned To | => fahrenheit |
| 2009-08-12 19:13 | noec | File Added: char.diff | |
| 2009-08-12 19:13 | noec | Note Added: 0002922 | |
| 2009-08-12 19:15 | noec | Note Edited: 0002922 | |
| 2009-08-12 19:23 | noec | Note Edited: 0002922 | |
| 2009-08-12 21:46 | DerIdiot | Project | HTML & PERL => AJAX/JS |
| 2009-08-12 22:26 | fahrenheit | Note Added: 0002924 | |
| 2009-08-12 22:26 | fahrenheit | Status | assigned => resolved |
| 2009-08-12 22:26 | fahrenheit | Resolution | open => fixed |