Commit fac08c3b authored by Phil Hughes's avatar Phil Hughes

Fixed up JS comments

parent 7df4b16b
...@@ -106,9 +106,8 @@ issuable_created = false ...@@ -106,9 +106,8 @@ issuable_created = false
checkChanged: -> checkChanged: ->
checked_issues = $('.selected_issue:checked') checked_issues = $('.selected_issue:checked')
if checked_issues.length > 0 if checked_issues.length > 0
ids = [] ids = $.map checked_issues, (value) ->
$.each checked_issues, (index, value) -> $(value).data('id')
ids.push $(value).data('id')
$('#update_issues_ids').val ids $('#update_issues_ids').val ids
$('.issues-other-filters').hide() $('.issues-other-filters').hide()
......
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
newUrl = decodeURIComponent(url) newUrl = decodeURIComponent(url)
for paramName, paramValue of params for paramName, paramValue of params
pattern = new RegExp "\\b(#{paramName}=).*?(&|$)" pattern = new RegExp "\\b(#{paramName}=).*?(&|$)"
if !paramValue? if not paramValue?
newUrl = newUrl.replace pattern, '' newUrl = newUrl.replace pattern, ''
else if url.search(pattern) >= 0 else if url.search(pattern) isnt -1
newUrl = newUrl.replace pattern, "$1#{paramValue}$2" newUrl = newUrl.replace pattern, "$1#{paramValue}$2"
else else
newUrl = "#{newUrl}#{(if newUrl.indexOf('?') > 0 then '&' else '?')}#{paramName}=#{paramValue}" 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