Off the event initially

This commit is contained in:
Jacob Schatz 2016-03-29 16:18:03 -04:00
parent e7650492f2
commit a121ee51bf
1 changed files with 2 additions and 1 deletions

View File

@ -9,9 +9,10 @@ class @IssuableContext
$(".issuable-sidebar .inline-update").on "change", ".js-assignee", -> $(".issuable-sidebar .inline-update").on "change", ".js-assignee", ->
$(this).submit() $(this).submit()
$(document).on "click",".edit-link", (e) -> $(document).off("click", ".edit-link").on "click",".edit-link", (e) ->
$block = $(@).parents('.block') $block = $(@).parents('.block')
$selectbox = $block.find('.selectbox') $selectbox = $block.find('.selectbox')
console.log 'selectbox visible???', $selectbox.is(':visible')
if $selectbox.is(':visible') if $selectbox.is(':visible')
$selectbox.hide() $selectbox.hide()
$block.find('.value').show() $block.find('.value').show()