Sha256: d0bba1257117cbcbf8511c1f563cbe47044a03d9967d099354c5e1c8cab899c3
Contents?: true
Size: 446 Bytes
Versions: 3
Compression:
Stored size: 446 Bytes
Contents
.state-widget = form.hidden_field field.method_name.to_s + '_event' = field.form_value :javascript $(function() { $('.state-btn').off('click').click(function(e){ e.preventDefault(); var $t = $(this), d = $t.data(); var $i = $t.parents('.state-widget').find('input') $i.val(d.event); console.log($i) $t.siblings().removeClass('active') $t.addClass('active') }) })
Version data entries
3 entries across 3 versions & 1 rubygems