From 0627cdaf4342f33684dd4d5b696342cd49d651fb Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem Date: Sun, 19 Feb 2017 02:50:41 +0100 Subject: [PATCH] Use autosize in modals Fixes #7338 and missing autosize in conversation forms on the profile page and the contacts page. Regression from #6674. closes #7339 --- Changelog.md | 1 + app/assets/javascripts/app/helpers/modal_helper.js | 1 + 2 files changed, 2 insertions(+) diff --git a/Changelog.md b/Changelog.md index 40e48a899..e5e89107f 100644 --- a/Changelog.md +++ b/Changelog.md @@ -12,6 +12,7 @@ * Update comment in database example config [#7282](https://github.com/diaspora/diaspora/pull/7282) * Make the \#newhere post public again [#7311](https://github.com/diaspora/diaspora/pull/7311) * Remove whitespace from author link [#7330](https://github.com/diaspora/diaspora/pull/7330) +* Fix autosize in modals [#7339](https://github.com/diaspora/diaspora/pull/7339) ## Features * Add support for [Liberapay](https://liberapay.com) donations [#7290](https://github.com/diaspora/diaspora/pull/7290) diff --git a/app/assets/javascripts/app/helpers/modal_helper.js b/app/assets/javascripts/app/helpers/modal_helper.js index 01aaac4b7..8e4db1efd 100644 --- a/app/assets/javascripts/app/helpers/modal_helper.js +++ b/app/assets/javascripts/app/helpers/modal_helper.js @@ -7,6 +7,7 @@ modalBody.load(url, function(){ $(id).find("#modalWaiter").remove(); + autosize($("textarea", modalBody)); $(id).trigger("modal:loaded"); }); };