[Backport] Fix issue #4069: delete icon of wiki links doesn't work
parent
07d11572d8
commit
7a944010ca
|
@ -77,7 +77,7 @@ WikiNavDirective = ($tgrepo, $log, $location, $confirm, $navUrls, $analytics, $l
|
|||
$el.find(".new input").focus()
|
||||
$el.find(".add-button").hide()
|
||||
|
||||
$el.on "click", ".wiki-link .icon-delete", (event) ->
|
||||
$el.on "click", ".js-delete-link", (event) ->
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
target = angular.element(event.currentTarget)
|
||||
|
|
|
@ -8,7 +8,7 @@ nav
|
|||
a(title!="<%- link.title %>")
|
||||
span.link-title <%- link.title %>
|
||||
<% if (deleteWikiLinkPermission) { %>
|
||||
svg.icon.icon-trash
|
||||
svg.js-delete-link.icon.icon-trash
|
||||
use(xlink:href="#icon-trash")
|
||||
<% } %>
|
||||
input(type="text" placeholder="{{'COMMON.FIELDS.NAME' | translate}}" class="hidden" value!="<%- link.title %>")
|
||||
|
|
Loading…
Reference in New Issue