fix errors for anonymous users in the wiki

stable
Juanfran 2015-02-26 12:02:15 +01:00 committed by David Barragán Merino
parent 8fd60856f9
commit 69c9f03b90
2 changed files with 9 additions and 4 deletions

View File

@ -238,6 +238,7 @@ EditableWikiContentDirective = ($window, $document, $repo, $confirm, $loading, $
$el.on "mouseup", ".view-wiki-content", (event) ->
target = angular.element(event.target)
return if getSelectedText()
return if not isEditable()
return if target.is('a')
return if target.is('pre')

View File

@ -24,10 +24,6 @@
position: relative;
.view-wiki-content {
&:hover {
.wysiwyg {
background: $whitish;
cursor: pointer;
}
.edit {
opacity: 1;
top: -1.5rem;
@ -67,4 +63,12 @@
top: .4rem;
}
}
&.editable {
&:hover {
.wysiwyg {
background: $whitish;
cursor: pointer;
}
}
}
}