View Issue Details

IDProjectCategoryView StatusLast Update
0001592AJAX/JSBug Report - Interfacepublic2009-08-15 16:07
ReporterHiEv Assigned Tofahrenheit  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0001592: Tooltip on final anime in users' MyLists does not appear
DescriptionMake sure you have "Use information tooltips on Mylist" turned on and then go to:
http://anidb.net/perl-bin/animedb.pl?show=mylist&uid=275538

And you can see that the last anime on his list does not have a tooltip icon (the little "i" in a circle that you click to see the anime information).

Same here:
http://anidb.net/perl-bin/animedb.pl?show=mylist&uid=126258

(I'm not seeing this with my own MyList though.)
Tagstooltip

Activities

2009-08-15 15:36

 

mylist.diff (642 bytes)   
@@ -110,8 +110,9 @@ function prepPage() {
 	var mylistTable = getElementsByClassName(document.getElementsByTagName('table'),'animelist',true)[0];
 	if (!mylistTable) { errorAlert('prepPage','no mylist table found'); return; }
 	var body = mylistTable.tBodies[0];
-	for (var i = 1; i < body.rows.length-1; i++) {
+	for (var i = 1; i < body.rows.length; i++) {
 		var row = body.rows[i];
+		if (row.className == "action") break;
 		var aid = Number(row.id.substring(1));
 		var cell = getElementsByClassName(row.getElementsByTagName('td'),'expand',true)[0];
 		if (!cell) { errorAlert('prepPage','no expand cell found'); continue; }
mylist.diff (642 bytes)   

noec

2009-08-15 15:37

developer   ~0002927

This issue was because of ones own mylist has an additional table row at the end ("update selected anime") and parser goes through all rows except first and last. So, when there is no this "update" row, parser skips the last anime row.

Added one of the solutions.

fahrenheit

2009-08-15 16:07

reporter   ~0002928

thanks for the tip, saved me the trouble of figuring out where it was going wrong :P

Issue History

Date Modified Username Field Change
2009-06-21 10:43 HiEv New Issue
2009-06-21 10:43 HiEv Tag Attached: tooltip
2009-06-21 10:45 HiEv Description Updated
2009-07-09 05:56 ninjamask Status new => assigned
2009-07-09 05:56 ninjamask Assigned To => fahrenheit
2009-07-24 14:03 DerIdiot Project HTML & PERL => AJAX/JS
2009-08-15 15:36 noec File Added: mylist.diff
2009-08-15 15:37 noec Note Added: 0002927
2009-08-15 16:07 fahrenheit Note Added: 0002928
2009-08-15 16:07 fahrenheit Status assigned => resolved
2009-08-15 16:07 fahrenheit Resolution open => fixed