diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-02-12 16:28:53 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-03-02 15:11:15 -0500 |
commit | 76ed2afcfc2ae2b6ab3d3419a1183374a39022cc (patch) | |
tree | 9f102ebcd4ec208938898529782317029e304d61 /spec | |
parent | b5738edadeb7e77fa152fc3776f652d94156681c (diff) | |
download | gitlab-ce-76ed2afcfc2ae2b6ab3d3419a1183374a39022cc.tar.gz |
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')
-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 |