summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-02-12 16:28:53 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-03-02 15:11:15 -0500
commit76ed2afcfc2ae2b6ab3d3419a1183374a39022cc (patch)
tree9f102ebcd4ec208938898529782317029e304d61 /spec
parentb5738edadeb7e77fa152fc3776f652d94156681c (diff)
downloadgitlab-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.haml6
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