Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

まちBBSで次スレ検索が表示されない #51

Open
eru opened this issue Aug 3, 2015 · 4 comments
Open

まちBBSで次スレ検索が表示されない #51

eru opened this issue Aug 3, 2015 · 4 comments

Comments

@eru
Copy link
Member

eru commented Aug 3, 2015

まちBBSは、300件と1000件の板があり、300件の板の場合に、レス数が300まで行っても左下の「次スレ検索」のボタンが表示されない。

@S--Minecraft
Copy link
Member

本家関連issue awef#72

@eru
Copy link
Member Author

eru commented Dec 11, 2015

@eru
Copy link
Member Author

eru commented May 28, 2016

src/view/thread.coffee

601     search_next_thread =
602       _elm: $view.find(".search_next_thread")[0]
603       show: ->
604         if content.childNodes.length >= 1000 or $view.find(".message_bar").hasClass("error")
605           @_elm.style["display"] = "block"
606         else
607           @hide()
608         return
609       hide: ->
610         @_elm.style["display"] = "none"
611         return

ここらへん。固定値ならともかく、したらばの場合取得しなきゃいけないので、通信挟まれて嫌な感じになるのをどうしようか検討中。

@eru
Copy link
Member Author

eru commented May 28, 2016

初回ロード時に、maxResCount(最大値)取得を遅延実行させて、判定部分(search_next_thread.show)では、遅延実行が完了して値がセットされてればそれを使って、そうじゃなければ、1000として判定する感じにする。たぶん。

@S--Minecraft S--Minecraft mentioned this issue May 6, 2017
76 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants