Commit fac08c3b authored by Phil Hughes's avatar Phil Hughes

Fixed up JS comments

parent 7df4b16b
......@@ -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}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment