When you want to save a page after edit change, there is a field "What has you change?"
How can i enforce filling this field?
Hi @Devo,
There is an open ticket CONFSERVER-6373.
Here is a workaround.
It disables SAVE button until "What did you change" filled.
<script type="text/javascript">
AJS.toInit(function() {
var buttonID = 'rte-button-publish';
var textID = 'versionComment';
if(AJS.$('#' + buttonID).length > 0 && AJS.$("#" + textID).length > 0) {
//Disable save button
AJS.$('#' + buttonID).prop('disabled', true);
//If the text box changes and there is content re-enable the save button
AJS.$("#" + textID).keyup(function() {
if(AJS.$(this).val() !== '') {
AJS.$('#' + buttonID).prop('disabled', false);
} else {
AJS.$('#' + buttonID).prop('disabled', true);
}
});
}
});
</script>
marked as answer. Thanks @Tansu Akdeniz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.