From f066daedbb5f2fc684cf58a2999fd1bdcb9413ff Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem Date: Mon, 8 Feb 2016 01:53:34 +0100 Subject: [PATCH] Disable share button in mobile publisher on submit closes #6682, closes #6330 --- Changelog.md | 1 + app/views/publisher/_publisher.mobile.haml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 6022499e1..65fb5df26 100644 --- a/Changelog.md +++ b/Changelog.md @@ -11,6 +11,7 @@ * Ensure the rubyzip gem is properly loaded [#6659](https://github.com/diaspora/diaspora/pull/6659) * Fix mobile registration layout after failed registration [#6677](https://github.com/diaspora/diaspora/pull/6677) * Fix mirrored names when using a RTL language [#6680](https://github.com/diaspora/diaspora/pull/6680) +* Disable submitting a post multiple times in the mobile UI [#6682](https://github.com/diaspora/diaspora/pull/6682) ## Features * Keyboard shortcuts now do work on profile pages as well [#6647](https://github.com/diaspora/diaspora/pull/6647/files) diff --git a/app/views/publisher/_publisher.mobile.haml b/app/views/publisher/_publisher.mobile.haml index df36515d5..ea8355e02 100644 --- a/app/views/publisher/_publisher.mobile.haml +++ b/app/views/publisher/_publisher.mobile.haml @@ -31,6 +31,9 @@ #file-upload-publisher{:title => t('shared.publisher.upload_photos'), :class => 'btn'} = image_tag "mobile/camera.png", alt: t("shared.publisher.upload_photos").titleize #publisher_mobile - = submit_tag t('shared.publisher.share'), :class => 'btn primary', :id => "submit_new_message" + = submit_tag t("shared.publisher.share"), + class: "btn primary", + id: "submit_new_message", + data: {"disable-with" => t("shared.publisher.posting")} #publisher_photo_upload