Fixed up JS comments
This commit is contained in:
parent
7df4b16b56
commit
fac08c3bcd
2 changed files with 4 additions and 5 deletions
|
@ -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()
|
||||
|
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue