View Issue Details

IDProjectCategoryView StatusLast Update
0001591HTML & PERLBug Report - Interfacepublic2009-06-24 22:23
Reporternoec Assigned Tofahrenheit  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0001591: 'mark unwached' for special eps displays wrong information
DescriptionThis bug appears in the MyList page. When clicking 'mark unwatched' for special eps, seen count in the 'seen' column always increases.
The problem is in the 'mylist.js' file in lines 404 and 405. Because function's 'changeAnimeRowWatchedState(aid,isWatched,epType)' parameter 'isWatched' is always treated the same way.

Patch included.
TagsNo tags attached.

Activities

2009-06-20 21:50

 

mylist.patch (707 bytes)   
--- mylist.js	2009-06-19 23:08:23.000000000 +0300
+++ mylist.fixed.js	2009-06-21 00:47:29.000000000 +0300
@@ -399,8 +399,8 @@
 			var text = cellSeen.firstChild.nodeValue;
 			var value = Number(text.split('+')[1]);
 			if (!isWatched) {
-				if (!value) cellSeen.firstChild.nodeValue += '+1';
-				else cellSeen.firstChild.nodeValue = text.replace('+'+value,'+'+(value+1));
+				if (!value || value <= 1) cellSeen.firstChild.nodeValue = text.replace('+'+value,'');
+				else cellSeen.firstChild.nodeValue = text.replace('+'+value,'+'+(value-1));
 			} else {
 				if (!value) cellSeen.firstChild.nodeValue += '+1';
 				else cellSeen.firstChild.nodeValue = text.replace('+'+value,'+'+(value+1));
mylist.patch (707 bytes)   

fahrenheit

2009-06-24 22:23

reporter   ~0002840

i uploaded your fix last night i think.

Issue History

Date Modified Username Field Change
2009-06-20 21:50 noec New Issue
2009-06-20 21:50 noec File Added: mylist.patch
2009-06-21 03:09 DerIdiot Status new => assigned
2009-06-21 03:09 DerIdiot Assigned To => fahrenheit
2009-06-24 22:23 fahrenheit Note Added: 0002840
2009-06-24 22:23 fahrenheit Status assigned => resolved
2009-06-24 22:23 fahrenheit Resolution open => fixed