svnno****@sourc*****
svnno****@sourc*****
2008年 1月 27日 (日) 23:22:06 JST
Revision: 343 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=343 Author: flyson Date: 2008-01-27 23:22:06 +0900 (Sun, 27 Jan 2008) Log Message: ----------- subject.txt が存在して Storage にデータがないときにツリーが表示されないのを修正 Modified Paths: -------------- trunk/bbs2chreader/chrome/content/bbs2chreader/board/page.js -------------- next part -------------- Modified: trunk/bbs2chreader/chrome/content/bbs2chreader/board/page.js =================================================================== --- trunk/bbs2chreader/chrome/content/bbs2chreader/board/page.js 2008-01-27 14:21:13 UTC (rev 342) +++ trunk/bbs2chreader/chrome/content/bbs2chreader/board/page.js 2008-01-27 14:22:06 UTC (rev 343) @@ -89,9 +89,12 @@ if(gBbs2chService.pref.getBoolPref("extensions.bbs2chreader.enable_tree_stripe2")) gTreeSubject.setAttribute("stripe", "true"); + var b2rStorageService = Cc["@bbs2ch.sourceforge.jp/b2r-storage-service;1"].getService(Ci.b2rIStorageService); + var boardData = b2rStorageService.getBoardData(gBoardItems.url); + if(gBbs2chService.pref.getBoolPref("extensions.bbs2chreader.board_auto_update")){ subjectUpdate(); - }else if(!gBoardItems.subjectFile.exists() || gBoardItems.subjectFile.fileSize==0){ + }else if(!gBoardItems.subjectFile.exists() || gBoardItems.subjectFile.fileSize==0 || !boardData){ subjectUpdate(); }else if(!gBoardItems.settingFile.exists() || gBoardItems.settingFile.fileSize==0){ settingUpdate();