Fix a disabled button after post a content record with state "Draft" or "Scheduled" (#6526)

This commit is contained in:
Yuriy Bakhtin 2023-08-18 11:02:28 +02:00 committed by GitHub
parent 371cde8e62
commit 7801f8145a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,7 @@ HumHub Changelog
- Enh #6498: Implement option "disabled" for picker fields
- Enh #6506: Allow event data from module config
- Fix #6510: Fix online status position on people page
- Fix #6526: Fix a disabled button after post a content record with state "Draft" or "Scheduled"
1.15.0-beta.1 (July 31, 2023)
-----------------------------

View File

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