Sha256: 7e6094c636a575542b31614b1fffd81404b3a058b93faf7c3a267f36c4644203
Contents?: true
Size: 726 Bytes
Versions: 1
Compression:
Stored size: 726 Bytes
Contents
# Settings $ -> show_update_btn = (el) -> $(el).closest('tr').find('.update_link').show() hide_update_btn = (el) -> $(el).closest('tr').find('.update_link').hide() $('#settings .form form input, textarea').change -> show_update_btn(this) $('#settings .form form input, textarea').keypress -> show_update_btn(this) $('#settings .form form').submit -> false $('#settings .update_link').click (e) -> e.preventDefault() btn = $(this) tr = $(btn.attr("data-id")) form = tr.find(".form form") form.ajaxSubmit success: (value) => if form.parent().hasClass("file") form.find(".inline-hints").html(value) form.clearForm() btn.hide()
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-settings-0.2.7 | vendor/assets/javascripts/activeadmin_settings/settings.js.coffee |