Last change
on this file since 25027 was 25027, checked in by jmt12, 12 years ago |
Adding the packages directory, and within it a configured version of dokuwiki all ready to run
|
File size:
657 bytes
|
Line | |
---|
1 | jQuery(document).ready(function() {
|
---|
2 | minSummaryLength = 15;
|
---|
3 | $editButton = jQuery("#edbtn__save");
|
---|
4 | $minorEdit = jQuery("#minoredit");
|
---|
5 | $summary = jQuery("#edit__summary");
|
---|
6 | $summary.keyup(enforceSummary).focus(enforceSummary);
|
---|
7 | $minorEdit.change(enforceSummary);
|
---|
8 | enforceSummary(); // To disable form submission on page load.
|
---|
9 | });
|
---|
10 | function enforceSummary() {
|
---|
11 | if ($summary.val() && $summary.val().length < minSummaryLength && !$minorEdit.is(':checked')) {
|
---|
12 | $summary.addClass("missing");
|
---|
13 | $editButton.attr("disabled", true).css("color", "#999");
|
---|
14 | } else {
|
---|
15 | $summary.removeClass("missing");
|
---|
16 | $editButton.removeAttr("disabled").css("color", "black");
|
---|
17 | }
|
---|
18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.