From f31e69b541f25c65c8db74d53755e3cfb70e94d6 Mon Sep 17 00:00:00 2001 From: "Jason F. McBrayer" Date: Wed, 5 Sep 2018 10:18:33 -0400 Subject: [PATCH] Ask for confirmation on some user actions when using AJAX --- brutaldon/templates/base.html | 2 +- brutaldon/templates/main/user.html | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/brutaldon/templates/base.html b/brutaldon/templates/base.html index fc7d9fb..0866342 100644 --- a/brutaldon/templates/base.html +++ b/brutaldon/templates/base.html @@ -135,7 +135,7 @@ ic-select-from-response="#main" ic-push-url="true" ic-on-success="afterPage('{{ own_acct.username }}', 'Settings');" - ic-indicator="#page-load-indicator""> + ic-indicator="#page-load-indicator">  Settings diff --git a/brutaldon/templates/main/user.html b/brutaldon/templates/main/user.html index 49b8de1..7d8101d 100644 --- a/brutaldon/templates/main/user.html +++ b/brutaldon/templates/main/user.html @@ -54,7 +54,8 @@ Brutaldon ({{ own_acct.username }}) - {{ user.acct }} timelime + ic-indicator="#user-spinner" ic-replace-target="true" + ic-confirm="Unfollow this user?"> {% endif %} @@ -73,7 +74,8 @@ Brutaldon ({{ own_acct.username }}) - {{ user.acct }} timelime + ic-indicator="#user-spinner" ic-replace-target="true" + ic-confirm="Mute this user?"> {% else %} @@ -88,7 +90,8 @@ Brutaldon ({{ own_acct.username }}) - {{ user.acct }} timelime + ic-indicator="#user-spinner" ic-replace-target="true" + ic-confirm="Block this user?"> {% else %}