Fix #790: Show a confirm message when a membership is updated

stable
David Barragán Merino 2014-09-03 17:51:49 +02:00
parent 2c59f9dcf9
commit 7a590832a3
1 changed files with 4 additions and 1 deletions

View File

@ -298,7 +298,8 @@ MembershipsRowAdminCheckboxDirective = ($log, $repo, $confirm) ->
$el.find(":checkbox").prop("checked", true) $el.find(":checkbox").prop("checked", true)
$el.on "click", ":checkbox", (event) => $el.on "click", ":checkbox", (event) =>
onSuccess = null onSuccess = ->
$confirm.notify("success")
onError = -> onError = ->
$confirm.notify("error") $confirm.notify("error")
@ -315,6 +316,8 @@ MembershipsRowAdminCheckboxDirective = ($log, $repo, $confirm) ->
module.directive("tgMembershipsRowAdminCheckbox", ["$log", "$tgRepo", "$tgConfirm", module.directive("tgMembershipsRowAdminCheckbox", ["$log", "$tgRepo", "$tgConfirm",
MembershipsRowAdminCheckboxDirective]) MembershipsRowAdminCheckboxDirective])
############################################################################# #############################################################################
## Member RoleSelector Directive ## Member RoleSelector Directive
############################################################################# #############################################################################