Method: Cms::ApplicationHelper#link_to_uncheck_all
- Defined in:
- app/helpers/cms/application_helper.rb
#link_to_uncheck_all(selector, name = "Uncheck All") ⇒ Object
Deprecated.
Use check_uncheck_tag instead. Retained for backwards compatibility w/ CMS implementations.
94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'app/helpers/cms/application_helper.rb', line 94 def link_to_uncheck_all(selector, name="Uncheck All") id = to_id(selector, "uncheck") content_for :html_head do html = "jQuery(function($) {\n $('a#\#{id}').click(function() {\n$('\#{selector}').attr('checked', false);\n });\n})\n" javascript_tag html end link_to name, '#', :id => id end |