修改配置modoule模块
This commit is contained in:
parent
2b063db0cc
commit
48f096178c
|
@ -1368,7 +1368,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def link_to_function(name, function, html_options={})
|
||||
content_tag(:a, name, {:href => '#', :onclick => "#{function}; return false;"}.merge(html_options))
|
||||
content_tag(:a, name, {:href => '#', :onclick => "#{function}; return false;"}.merge(:class => " c_purple"))
|
||||
end
|
||||
|
||||
# Helper to render JSON in views
|
||||
|
@ -1390,8 +1390,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def check_all_links(form_name)
|
||||
link_to_function(l(:button_check_all), "checkAll('#{form_name}', true)") +
|
||||
" | ".html_safe +
|
||||
link_to_function(l(:button_check_all), "checkAll('#{form_name}', true)") + " ".html_safe + " | "+ " ".html_safe +
|
||||
link_to_function(l(:button_uncheck_all), "checkAll('#{form_name}', false)")
|
||||
end
|
||||
|
||||
|
|
|
@ -13,12 +13,9 @@
|
|||
</ul>
|
||||
</div><!--box end-->
|
||||
<p class="mb10 c_grey">
|
||||
<a href="javascript:void(0)" class="c_purple" onclick="checkAll('modules-form', true);return false;">全选</a>
|
||||
|
|
||||
<a href="javascript:void(0)" class=" c_purple" onclick="checkAll('modules-form', false); return false;" >清除</a>
|
||||
<%= check_all_links 'modules-form' %>
|
||||
</p>
|
||||
<p>
|
||||
<a href="javascript:void(0)" class="blue_btn" >保存</a>
|
||||
<a onclick="submitModules();" class="blue_btn" href="javascript:void(0)" ><%= l(:button_save) %></a>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
|
|
|
@ -180,4 +180,8 @@ function project_setting(n)
|
|||
}
|
||||
}
|
||||
|
||||
// 背景换色
|
||||
// 配置模块提交
|
||||
function submitModules()
|
||||
{
|
||||
$("#modules-form").submit();
|
||||
}
|
Loading…
Reference in New Issue