This commit is contained in:
yuanke 2016-11-09 14:20:13 +08:00
parent 10f810960e
commit 77f3921d0e
1 changed files with 7 additions and 12 deletions

View File

@ -99,8 +99,7 @@ module Mobile
if f.is_a?(::Issue) if f.is_a?(::Issue)
# f.journals_for_messages.reverse # f.journals_for_messages.reverse
if !opt[:children] && opt[:type] == 0 if !opt[:children] && opt[:type] == 0
#opt[:children] = true opt[:children] = true
opt.merge({:children=>true})
tStart = opt[:page]*5 tStart = opt[:page]*5
tEnd = (opt[:page]+1)*5 - 1 tEnd = (opt[:page]+1)*5 - 1
@ -136,8 +135,7 @@ module Mobile
# opt[:bottom] = true # opt[:bottom] = true
# parents_reply[opt[:page]..opt[:page]] # parents_reply[opt[:page]..opt[:page]]
else else
#opt[:bottom] = true opt[:bottom] = true
opt.merge({:bottom=>true})
parents_reply[0..0] parents_reply[0..0]
end end
else else
@ -153,8 +151,7 @@ module Mobile
parents_reply = get_reply_parents(parents_reply, f) parents_reply = get_reply_parents(parents_reply, f)
if parents_reply.count > 2 && !opt[:top] if parents_reply.count > 2 && !opt[:top]
if opt[:type] == 1 if opt[:type] == 1
#opt[:top] = true opt[:top] = true
opt.merge({:top=>true})
tStart = (opt[:page]-1)*5+2 tStart = (opt[:page]-1)*5+2
tEnd = (opt[:page])*5+2 - 1 tEnd = (opt[:page])*5+2 - 1
@ -169,14 +166,12 @@ module Mobile
[] []
end end
else else
#opt[:top] = true opt[:top] = true
opt.merge({:top=>true})
parents_reply = parents_reply.reverse[0..1] parents_reply = parents_reply.reverse[0..1]
parents_reply.reverse parents_reply.reverse
end end
elsif parents_reply.count == 2 && !opt[:top] elsif parents_reply.count == 2 && !opt[:top]
#opt[:top] = true opt[:top] = true
opt.merge({:top=>true})
parents_reply = parents_reply.reverse[0..0] parents_reply = parents_reply.reverse[0..0]
parents_reply.reverse parents_reply.reverse
else else