|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|