diff --git a/lib/philomena_web/templates/image/comment/_form.html.slime b/lib/philomena_web/templates/image/comment/_form.html.slime index 8ce81438..a504c3ea 100644 --- a/lib/philomena_web/templates/image/comment/_form.html.slime +++ b/lib/philomena_web/templates/image/comment/_form.html.slime @@ -25,7 +25,7 @@ ' [Loading preview...] .block__content.communication-edit__actions - => submit "Post", class: "button" + => submit "Post", class: "button", data: [disable_with: raw("Posting…")] = if @conn.assigns.current_user do = checkbox f, :anonymous, value: anonymous_by_default?(@conn) diff --git a/lib/philomena_web/templates/topic/new.html.slime b/lib/philomena_web/templates/topic/new.html.slime index 4774fd7d..8c7dc23a 100644 --- a/lib/philomena_web/templates/topic/new.html.slime +++ b/lib/philomena_web/templates/topic/new.html.slime @@ -83,4 +83,4 @@ ' [Loading preview...] .block__content.communication-edit__actions - = submit "Post", class: "button" + = submit "Post", class: "button", data: [disable_with: raw("Posting…")] diff --git a/lib/philomena_web/templates/topic/post/_form.html.slime b/lib/philomena_web/templates/topic/post/_form.html.slime index 968148e7..bfc7b191 100644 --- a/lib/philomena_web/templates/topic/post/_form.html.slime +++ b/lib/philomena_web/templates/topic/post/_form.html.slime @@ -25,7 +25,7 @@ ' [Loading preview...] .block__content.communication-edit__actions - = submit "Post", class: "button" + => submit "Post", class: "button", data: [disable_with: raw("Posting…")] = if @conn.assigns.current_user do = checkbox f, :anonymous, value: anonymous_by_default?(@conn)