DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:autominor

Set "Minor Changes" by default

To have the “Minor Changes” checkbox enabled by default, put the following in your conf/userscript.js (create it if it does not exist):

conf/userscript.js
jQuery(function() {
    var prv = jQuery('div.preview');
    if(prv[0]) return; // preview is shown, do not modify state
    jQuery('#minoredit').prop('checked', true);
});

This enhancement is available as a part of plugin enforcesummary.

Deprecated Version (for old DokuWiki versions):

conf/userscript.js
addInitEvent(function(){
    var cbox = $('minoredit');
    if(!cbox) return;
    var prv = getElementsByClass('preview',document,'div');
    if(prv[0]) return; //preview is shown, do not modify state
    cbox.checked = true;
});
tips/autominor.txt · Last modified: by 122.212.225.106

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki