Disable share button in mobile publisher on submit

closes #6682, closes #6330
This commit is contained in:
Steffen van Bergerem 2016-02-08 01:53:34 +01:00 committed by Dennis Schubert
parent f9f5e990f9
commit f066daedbb
2 changed files with 5 additions and 1 deletions

View file

@ -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)

View file

@ -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