Fix displaying of alert when RichText is changed on refresh a page (#6736)

This commit is contained in:
Yuriy Bakhtin 2023-12-14 15:56:30 +01:00 committed by GitHub
parent bc1cfbfb0e
commit 9e2411392c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,10 @@
HumHub Changelog
================
1.15.2 (Unreleased)
-------------------------
- Fix #6708: Fix displaying of alert when RichText is changed on refresh a page
1.15.1 (December 13, 2023)
-------------------------
- Enh #6697: Make state badge customizable

View File

@ -422,6 +422,7 @@ humhub.module('client', function (module, require, $) {
};
var formStateChanged = function ($form) {
$form.find(':focus').blur(); // Unfocus in order to update textarea value from RichText editor
return $form.data('state') && $form.data('state') !== serializeFormState($form);
};