Fix the post submit button title after back from draft mode (#7482)

This commit is contained in:
Yuriy Bakhtin 2025-04-04 18:57:51 +02:00 committed by GitHub
parent 9124eff27f
commit edabe6036c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -10,6 +10,7 @@ HumHub Changelog
- Fix #7472: Fix missing fields when creating a new user from admin
- Fix #7477: Refactor Registration Form Options
- Enh #7455: Add Share Intend feature for the Mobile app
- Fix #7482: Fix the post submit button title after back from draft mode
1.17.1 (March 6, 2025)
----------------------

View File

@ -243,8 +243,12 @@ humhub.module('content.form', function (module, require, $) {
const initial = stateInput.data('initial');
if (initial !== undefined) {
stateInput.val(initial.state);
button.data('htmlOld', initial.buttonTitle).removeAttr('style');
loader.reset(button);
if (loader.is(button)) {
button.data('htmlOld', initial.buttonTitle).removeAttr('style');
loader.reset(button);
} else {
button.html(initial.buttonTitle);
}
}
this.$.find('input[name^=scheduled]').remove();
this.$.find('.label-content-state').hide();