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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
f79687ea
Commit
f79687ea
authored
Mar 30, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear .todo listener
parent
0591a782
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
app/assets/javascripts/todos.js.coffee
app/assets/javascripts/todos.js.coffee
+1
-0
features/steps/dashboard/todos.rb
features/steps/dashboard/todos.rb
+1
-1
No files found.
app/assets/javascripts/todos.js.coffee
View file @
f79687ea
...
...
@@ -6,6 +6,7 @@ class @Todos
clearListeners
:
->
$
(
'.done-todo'
).
off
(
'click'
)
$
(
'.js-todos-mark-all'
).
off
(
'click'
)
$
(
'.todo'
).
off
(
'click'
)
initBtnListeners
:
->
$
(
'.done-todo'
).
on
(
'click'
,
@
doneClicked
)
...
...
features/steps/dashboard/todos.rb
View file @
f79687ea
...
...
@@ -89,7 +89,7 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
end
step
'I click on the todo'
do
execute_script
(
"$('.todo:nth-child(1)').click()"
)
find
(
'.todo:nth-child(1)'
).
click
end
step
'I should be directed to the corresponding page'
do
...
...
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