Merge pull request #228 from taigaio/bug/1772/update-wiki-stats-on-edit

Bug #1772: Update wiki stats on wiki page edit
stable
Alejandro 2015-01-09 09:33:41 +01:00
commit 1db9c82141
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")