mirror of
https://github.com/humhub/humhub.git
synced 2025-04-20 15:11:52 +02:00
Fix the post submit button title after back from draft mode (#7482)
This commit is contained in:
parent
9124eff27f
commit
edabe6036c
@ -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)
|
||||
----------------------
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user