Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
38fbfb9f
Commit
38fbfb9f
authored
Oct 05, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Require jquery.turbolinks in all JS specs
Side-effect: This simplifies the requiresInput handler
parent
1f11096c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/behaviors/requires_input.js.coffee
app/assets/javascripts/behaviors/requires_input.js.coffee
+1
-2
spec/javascripts/spec_helper.coffee
spec/javascripts/spec_helper.coffee
+1
-0
No files found.
app/assets/javascripts/behaviors/requires_input.js.coffee
View file @
38fbfb9f
...
...
@@ -34,6 +34,5 @@ $.fn.requiresInput = ->
$form
.
on
'change input'
,
fieldSelector
,
requireInput
# Triggered on standard document `ready` and on Turbolinks `page:load` events
$
(
document
).
on
'ready page:load'
,
->
$
->
$
(
'form.js-requires-input'
).
requiresInput
()
spec/javascripts/spec_helper.coffee
View file @
38fbfb9f
...
...
@@ -9,6 +9,7 @@
# require the specific files that are being used in the spec that tests them.
#= require jquery
#= require jquery.turbolinks
#= require bootstrap
#= require underscore
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment