flyson
flyso****@users*****
2006年 7月 14日 (金) 02:42:38 JST
Index: bbs2chreader/content/bbs2chreader/board-items.js diff -u bbs2chreader/content/bbs2chreader/board-items.js:1.13 bbs2chreader/content/bbs2chreader/board-items.js:1.14 --- bbs2chreader/content/bbs2chreader/board-items.js:1.13 Sun Dec 4 01:00:31 2005 +++ bbs2chreader/content/bbs2chreader/board-items.js Fri Jul 14 02:42:38 2006 @@ -277,7 +277,7 @@ var cacheItem = {}; cacheItem.datID = cacheLine[0]; cacheItem.lastModified = cacheLine[1]; - cacheItem.count = cacheLine[2]; + cacheItem.count = parseInt(cacheLine[2]); cacheItem.title = cacheLine[3]; cacheItem.id = "item-" + cacheItem.datID; cacheItemHash[cacheItem.id] = cacheItem; @@ -315,8 +315,8 @@ cacheUpdated = true; var indexContent = this._bbs2chService.readFile(file.path); indexContent = this._bbs2chService.fromType(indexContent, this.type); - logItem.title = regTitle.test(indexContent) ? "X" + RegExp.$1 : ""; - logItem.count = regLineCount.test(indexContent) ? RegExp.$1 : ""; + logItem.title = regTitle.test(indexContent) ? RegExp.$1 : ""; + logItem.count = regLineCount.test(indexContent) ? parseInt(RegExp.$1) : 0; logItem.read = logItem.count; }