View Issue Details

IDProjectCategoryView StatusLast Update
0001648AJAX/JSBug Report - Interfacepublic2009-08-12 22:26
Reporterninjamask Assigned Tofahrenheit  
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionfixed 
PlatformIntel Core 2 Duo E7300OSWindows VistaOS VersionSP1 32 Bit
Summary0001648: Guises with brackets in the name are wrong presentated in the dropdown menu
DescriptionGuises with brackets in the name are wrong presentated in the dropdown menu
Steps To Reproducehttp://anidb.net/perl-bin/animedb.pl?show=character&charid=8227

Main name: Federal Bureau of Investigation (Conan)
dropdown menu: Federal Bureau of Investigation Conan )(
TagsNo tags attached.

Activities

2009-08-12 19:13

 

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);
 		}
 	}
char.diff (519 bytes)   

noec

2009-08-12 19:13

developer   ~0002922

Last edited: 2009-08-12 19:23

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 /(\()[^\(]*$/.

fahrenheit

2009-08-12 22:26

reporter   ~0002924

thanks for the diff noec.

fixed

Issue History

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