diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-02-13 00:28:53 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-03-02 23:11:15 +0300 |
commit | 76ed2afcfc2ae2b6ab3d3419a1183374a39022cc (patch) | |
tree | 9f102ebcd4ec208938898529782317029e304d61 /spec/javascripts | |
parent | b5738edadeb7e77fa152fc3776f652d94156681c (diff) |
Change `js-quick-submit` behavior to expect the class on the form
Now it will work on any field inside that form, and it's easier to scope
new behavior, which is what we're adding next!
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/fixtures/behaviors/quick_submit.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/javascripts/fixtures/behaviors/quick_submit.html.haml b/spec/javascripts/fixtures/behaviors/quick_submit.html.haml index b80a28a33ea..e3788bee813 100644 --- a/spec/javascripts/fixtures/behaviors/quick_submit.html.haml +++ b/spec/javascripts/fixtures/behaviors/quick_submit.html.haml @@ -1,6 +1,6 @@ -%form{ action: '/foo' } - %input.js-quick-submit{ type: 'text' } - %textarea.js-quick-submit +%form.js-quick-submit{ action: '/foo' } + %input{ type: 'text' } + %textarea %input{ type: 'submit'} Submit %button.btn{ type: 'submit' } Submit |