Bug #1772: Update wiki stats on wiki page edit

stable
Jesús Espino 2015-01-08 18:40:03 +01:00
parent 82ce4cf663
commit 3425ecc76b
1 changed files with 4 additions and 0 deletions

View File

@ -177,6 +177,9 @@ WikiSummaryDirective = ($log) ->
return if not wikiPage
render(wikiPage)
$scope.$on "wiki:edit", (event, wikiPage) ->
render(wikiPage)
$scope.$on "$destroy", ->
$el.off()
@ -258,6 +261,7 @@ EditableWikiContentDirective = ($window, $document, $repo, $confirm, $loading, $
$model.setModelValue = wiki
$confirm.notify("success")
switchToReadMode()
$scope.$broadcast("wiki:edit", wikiPage)
onError = ->
$confirm.notify("error")