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