隐藏掉“综合”选项,分页每页显示20个
This commit is contained in:
parent
0b43fb5502
commit
885b6f6092
|
@ -51,11 +51,11 @@ class SubDocumentCommentsController < ApplicationController
|
|||
if @organization.is_public? || User.current.admin? || User.current.member_of_org?(@organization)
|
||||
@documents = @subdomain.sub_document_comments.where("parent_id is null").order("created_at desc")
|
||||
@is_remote = true
|
||||
@limit = 2
|
||||
@limit = 20
|
||||
@atta_count = @documents.count
|
||||
@atta_pages = Paginator.new @atta_count, @limit, params['page'] || 1
|
||||
@offset ||= @atta_pages.offset
|
||||
@documents = paginateHelper @documents,2
|
||||
@documents = paginateHelper @documents,20
|
||||
respond_to do |format|
|
||||
format.html {render :layout => @organization.switch_type ? 'base_sub_domain' : 'base_org'}
|
||||
end
|
||||
|
|
|
@ -152,10 +152,10 @@
|
|||
<input type="radio" id="orgMeb" value="Resource" name="field_type" />
|
||||
<label for="orgMeb">资源</label>
|
||||
</li>
|
||||
<li class="fl">
|
||||
<input type="radio" id="orgMeb" value="Resource" name="field_type" />
|
||||
<label for="orgMeb">综合</label>
|
||||
</li>
|
||||
<!--<li class="fl">-->
|
||||
<!--<input type="radio" id="orgCom" value="Complex" name="field_type" />-->
|
||||
<!--<label for="orgMeb">综合</label>-->
|
||||
<!--</li>-->
|
||||
<li class="fr"><a href="javascript:void(0);" class="saveBtn db" onclick="add_org_subfield();">新增</a></li>
|
||||
<li class="cl"></li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue