tips:summary_enforcement
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tips:summary_enforcement [2011-12-02 03:35] – Updated to use jQuery, for Angua. samwilson | tips:summary_enforcement [2012-12-29 12:22] – lupo49 | ||
---|---|---|---|
Line 13: | Line 13: | ||
It's possible to modify the code so that a summary is always required, as explained below. | It's possible to modify the code so that a summary is always required, as explained below. | ||
+ | |||
+ | ===== Plugin available ===== | ||
+ | |||
+ | There' | ||
===== Dokuwiki 2011-11-10 “Angua” ===== | ===== Dokuwiki 2011-11-10 “Angua” ===== | ||
Line 31: | Line 35: | ||
}); | }); | ||
function enforceSummary() { | function enforceSummary() { | ||
- | if ($summary.val().length < minSummaryLength && !$minorEdit.is(': | + | if ($summary.val() && |
$summary.addClass(" | $summary.addClass(" | ||
$editButton.attr(" | $editButton.attr(" |
tips/summary_enforcement.txt · Last modified: 2023-06-19 15:20 by asheenlevrai