Fix #790: Show a confirm message when a membership is updated
parent
2c59f9dcf9
commit
7a590832a3
|
@ -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
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
Loading…
Reference in New Issue