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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
fac08c3b
Commit
fac08c3b
authored
May 20, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed up JS comments
parent
7df4b16b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
app/assets/javascripts/issuable.js.coffee
app/assets/javascripts/issuable.js.coffee
+2
-3
app/assets/javascripts/lib/url_utility.js.coffee
app/assets/javascripts/lib/url_utility.js.coffee
+2
-2
No files found.
app/assets/javascripts/issuable.js.coffee
View file @
fac08c3b
...
...
@@ -106,9 +106,8 @@ issuable_created = false
checkChanged
:
->
checked_issues
=
$
(
'.selected_issue:checked'
)
if
checked_issues
.
length
>
0
ids
=
[]
$
.
each
checked_issues
,
(
index
,
value
)
->
ids
.
push
$
(
value
).
data
(
'id'
)
ids
=
$
.
map
checked_issues
,
(
value
)
->
$
(
value
).
data
(
'id'
)
$
(
'#update_issues_ids'
).
val
ids
$
(
'.issues-other-filters'
).
hide
()
...
...
app/assets/javascripts/lib/url_utility.js.coffee
View file @
fac08c3b
...
...
@@ -26,9 +26,9 @@
newUrl
=
decodeURIComponent
(
url
)
for
paramName
,
paramValue
of
params
pattern
=
new
RegExp
"
\\
b(
#{
paramName
}
=).*?(&|$)"
if
!
paramValue
?
if
not
paramValue
?
newUrl
=
newUrl
.
replace
pattern
,
''
else
if
url
.
search
(
pattern
)
>=
0
else
if
url
.
search
(
pattern
)
isnt
-
1
newUrl
=
newUrl
.
replace
pattern
,
"$1
#{
paramValue
}
$2"
else
newUrl
=
"
#{
newUrl
}#{
(
if
newUrl
.
indexOf
(
'?'
)
>
0
then
'&'
else
'?'
)
}#{
paramName
}
=
#{
paramValue
}
"
...
...
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