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
Tatuya Kamada
gitlab-ce
Commits
085f1228
Commit
085f1228
authored
Mar 30, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unbind task item checkbox events and then rebind them
Fixes #1340
parent
33a8f53f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
app/assets/javascripts/issue.js.coffee
app/assets/javascripts/issue.js.coffee
+2
-6
app/assets/javascripts/merge_request.js.coffee
app/assets/javascripts/merge_request.js.coffee
+2
-6
No files found.
app/assets/javascripts/issue.js.coffee
View file @
085f1228
...
@@ -9,12 +9,8 @@ class @Issue
...
@@ -9,12 +9,8 @@ class @Issue
if
$
(
"a.btn-close"
).
length
if
$
(
"a.btn-close"
).
length
$
(
"li.task-list-item input:checkbox"
).
prop
(
"disabled"
,
false
)
$
(
"li.task-list-item input:checkbox"
).
prop
(
"disabled"
,
false
)
$
(
".task-list-item input:checkbox"
).
on
(
$
(
'.task-list-item input:checkbox'
).
off
(
'change'
)
"click"
$
(
'.task-list-item input:checkbox'
).
change
(
'issue'
,
updateTaskState
)
null
"issue"
updateTaskState
)
$
(
'.issue-details'
).
waitForImages
->
$
(
'.issue-details'
).
waitForImages
->
$
(
'.issuable-affix'
).
affix
offset
:
$
(
'.issuable-affix'
).
affix
offset
:
...
...
app/assets/javascripts/merge_request.js.coffee
View file @
085f1228
...
@@ -81,12 +81,8 @@ class @MergeRequest
...
@@ -81,12 +81,8 @@ class @MergeRequest
this
.
$
(
'.remove_source_branch_in_progress'
).
hide
()
this
.
$
(
'.remove_source_branch_in_progress'
).
hide
()
this
.
$
(
'.remove_source_branch_widget.failed'
).
show
()
this
.
$
(
'.remove_source_branch_widget.failed'
).
show
()
$
(
".task-list-item input:checkbox"
).
on
(
$
(
'.task-list-item input:checkbox'
).
off
(
'change'
)
"click"
$
(
'.task-list-item input:checkbox'
).
change
(
'merge_request'
,
updateTaskState
)
null
"merge_request"
updateTaskState
)
activateTab
:
(
action
)
->
activateTab
:
(
action
)
->
this
.
$
(
'.merge-request-tabs li'
).
removeClass
'active'
this
.
$
(
'.merge-request-tabs li'
).
removeClass
'active'
...
...
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