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
31b1dc3c
Commit
31b1dc3c
authored
Apr 26, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed failing rubocop tests
Fixed issue with issuable checkboxs not being init'd
parent
7eb97ef4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
41 deletions
+10
-41
app/assets/javascripts/issuable.js.coffee
app/assets/javascripts/issuable.js.coffee
+9
-2
app/assets/javascripts/issues.js.coffee
app/assets/javascripts/issues.js.coffee
+0
-38
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+1
-1
No files found.
app/assets/javascripts/issuable.js.coffee
View file @
31b1dc3c
...
@@ -5,6 +5,7 @@ issuable_created = false
...
@@ -5,6 +5,7 @@ issuable_created = false
issuable_created
=
true
issuable_created
=
true
Issuable
.
initTemplates
()
Issuable
.
initTemplates
()
Issuable
.
initSearch
()
Issuable
.
initSearch
()
Issuable
.
initChecks
()
initTemplates
:
->
initTemplates
:
->
Issuable
.
labelRow
=
_
.
template
(
Issuable
.
labelRow
=
_
.
template
(
...
@@ -62,11 +63,17 @@ issuable_created = false
...
@@ -62,11 +63,17 @@ issuable_created = false
dataType
:
"json"
dataType
:
"json"
reload
:
->
reload
:
->
if
Issu
es
.
created
if
Issu
able
.
created
Issu
es
.
initChecks
()
Issu
able
.
initChecks
()
$
(
'#filter_issue_search'
).
val
(
$
(
'#issue_search'
).
val
())
$
(
'#filter_issue_search'
).
val
(
$
(
'#issue_search'
).
val
())
initChecks
:
->
$
(
'.check_all_issues'
).
on
'click'
,
->
$
(
'.selected_issue'
).
prop
(
'checked'
,
@
checked
)
Issuable
.
checkChanged
()
$
(
'.selected_issue'
).
on
'change'
,
Issuable
.
checkChanged
updateStateFilters
:
->
updateStateFilters
:
->
stateFilters
=
$
(
'.issues-state-filters, .dropdown-menu-sort'
)
stateFilters
=
$
(
'.issues-state-filters, .dropdown-menu-sort'
)
...
...
app/assets/javascripts/issues.js.coffee
deleted
100644 → 0
View file @
7eb97ef4
@
Issues
=
init
:
->
Issues
.
created
=
true
Issues
.
initChecks
()
$
(
"body"
).
on
"ajax:success"
,
".close_issue, .reopen_issue"
,
->
t
=
$
(
this
)
totalIssues
=
undefined
reopen
=
t
.
hasClass
(
"reopen_issue"
)
$
(
".issue_counter"
).
each
->
issue
=
$
(
this
)
totalIssues
=
parseInt
(
$
(
this
).
html
(),
10
)
if
reopen
and
issue
.
closest
(
".main_menu"
).
length
$
(
this
).
html
totalIssues
+
1
else
$
(
this
).
html
totalIssues
-
1
initChecks
:
->
$
(
".check_all_issues"
).
click
->
$
(
".selected_issue"
).
prop
(
"checked"
,
@
checked
)
Issues
.
checkChanged
()
$
(
".selected_issue"
).
bind
"change"
,
Issues
.
checkChanged
checkChanged
:
->
checked_issues
=
$
(
".selected_issue:checked"
)
if
checked_issues
.
length
>
0
ids
=
[]
$
.
each
checked_issues
,
(
index
,
value
)
->
ids
.
push
$
(
value
).
attr
(
"data-id"
)
$
(
"#update_issues_ids"
).
val
ids
$
(
".issues-other-filters"
).
hide
()
$
(
".issues_bulk_update"
).
show
()
else
$
(
"#update_issues_ids"
).
val
[]
$
(
".issues_bulk_update"
).
hide
()
$
(
".issues-other-filters"
).
show
()
app/helpers/application_helper.rb
View file @
31b1dc3c
...
@@ -278,7 +278,7 @@ module ApplicationHelper
...
@@ -278,7 +278,7 @@ module ApplicationHelper
path
=
request
.
path
path
=
request
.
path
if
params
!=
nil
if
!
params
.
nil?
path
<<
"?
#{
params
.
to_param
}
"
path
<<
"?
#{
params
.
to_param
}
"
if
add_label
if
add_label
if
params
[
:label_name
].
present?
and
params
[
:label_name
].
respond_to?
(
'any?'
)
if
params
[
:label_name
].
present?
and
params
[
:label_name
].
respond_to?
(
'any?'
)
...
...
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