Remove wiki edition ir pre or secondary click

stable
Xavier Julián 2015-02-17 09:35:31 +01:00
parent 24cc5ff366
commit 3239b8757b
1 changed files with 2 additions and 1 deletions

View File

@ -245,8 +245,9 @@ EditableWikiContentDirective = ($window, $document, $repo, $confirm, $loading, $
# not the currentTarget # not the currentTarget
target = angular.element(event.target) target = angular.element(event.target)
return if not isEditable() return if not isEditable()
return if target.is('a') return if target.is('a', '.codehilite', 'pre')
return if getSelectedText() return if getSelectedText()
return if event.button == 2
if target.is('pre') if target.is('pre')
prevPos = target.data("scroll-pos") prevPos = target.data("scroll-pos")
target.data("scroll-pos", null) target.data("scroll-pos", null)