Skip to content

Commit

Permalink
Item15209: block editor interface clicking on ...
Browse files Browse the repository at this point in the history
... save and continue of an autoinc topic
  • Loading branch information
MichaelDaum committed Aug 24, 2023
1 parent ae6be61 commit c5b961e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions NatEditPlugin/data/System/NatEditPlugin.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1689074655" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" date="1692862879" format="1.1" version="1"}%
---+!! Natural Edit Plugin
%FORMFIELD{"Description"}%

Expand Down Expand Up @@ -62,6 +62,7 @@ is sufficient.
---++ Change History

%TABLE{columnwidths="7em" tablewidth="100%"}%
| 24 Aug 2023 | Foswikitask:Item15209: prevent multiple topics being created when editing an autoinc topic |
| 11 Jul 2023 | Foswikitask:Item15200: fixed possible XSS vulnerability in topic title field |
| 07 Jun 2023 | Foswikitask:Item15194: make edit toolbar more configurable |
| 26 Apr 2023 | Foswikitask:Item15189: fixed redirectto parameter breaking preview function |
Expand Down Expand Up @@ -204,4 +205,4 @@ is sufficient.
%META:FIELD{name="Repository" title="Repository" value="https://github.com/foswiki/distro"}%
%META:FIELD{name="Support" title="Support" value="http://foswiki.org/Support/%25$ROOTMODULE%25"}%
%META:FIELD{name="Version" title="Version" value="%25$VERSION%25"}%
%META:FILEATTACHMENT{name="screenshot1.png" attr="h" comment="" date="1689074655" size="104954" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="screenshot1.png" attr="h" comment="" date="1692862879" size="104954" user="ProjectContributor" version="1"}%
4 changes: 2 additions & 2 deletions NatEditPlugin/lib/Foswiki/Plugins/NatEditPlugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ BEGIN {
}
}

our $VERSION = '9.63';
our $RELEASE = '11 Jul 2023';
our $VERSION = '9.64';
our $RELEASE = '24 Aug 2023';
our $NO_PREFS_IN_TOPIC = 1;
our $SHORTDESCRIPTION = 'A Wikiwyg Editor';
our $baseWeb;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,9 @@ $.NatEditor.prototype.save = function(action) {
self.beforeSubmit(action).then(function() {
if (topicName.match(/AUTOINC|XXXXXXXXXX/)) {
// don't ajax when we don't know the resultant URL (can change this if the server tells it to us..)
$.blockUI({
message: '<h1>'+ $.i18n("Saving ...") + '</h1>'
});
self.form.submit();
} else {
self.form.ajaxSubmit({
Expand Down

0 comments on commit c5b961e

Please sign in to comment.