BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
requires_input.js.coffee
app/assets/javascripts/behaviors/requires_input.js.coffee
+1
-2
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