Fixing <a> click inside description
parent
f8c45ca719
commit
ad0121061e
|
@ -520,8 +520,10 @@ EditableDescriptionDirective = ($rootscope, $repo, $confirm, $compile, $loading)
|
||||||
$el.off()
|
$el.off()
|
||||||
|
|
||||||
$el.on "click", ".view-description", (event) ->
|
$el.on "click", ".view-description", (event) ->
|
||||||
target = angular.element(event.currentTarget)
|
# We want to dettect the a inside the div so we use the target and
|
||||||
if target.not('a')
|
# not the currentTarget
|
||||||
|
target = angular.element(event.target)
|
||||||
|
if not target.is('a')
|
||||||
$el.find('div.edit-description').show()
|
$el.find('div.edit-description').show()
|
||||||
$el.find('div.view-description').hide()
|
$el.find('div.view-description').hide()
|
||||||
$el.find('textarea').focus()
|
$el.find('textarea').focus()
|
||||||
|
|
Loading…
Reference in New Issue