Issue #2714 - Wiki edition when content is empty

stable
Alejandro Alonso 2015-05-22 09:37:31 +02:00
parent f154afb5d9
commit 8fd140f4fd
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ EditableWikiContentDirective = ($window, $document, $repo, $confirm, $loading, $
if isEditable()
$el.addClass('editable')
if not wikiPage.id?
if not wikiPage.id? or $.trim(wikiPage.content).length == 0
switchToEditMode()
else
disableEdition()