aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/plugins/extension/script.js
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2022-01-02 11:09:43 +0100
committerAndreas Gohr <andi@splitbrain.org>2022-01-02 11:09:43 +0100
commitb469737aef969dbd2b79ca3bc106c12ca8dbb031 (patch)
tree296fad7aa02c22b964c5b6a0c0f7d6d9bb815453 /lib/plugins/extension/script.js
parentee78287dbefed9b27be070a4ce4868701224dfcc (diff)
parent8e7694e09b852a01b431ebce2c1c99e4945f23b8 (diff)
downloaddokuwiki-b469737aef969dbd2b79ca3bc106c12ca8dbb031.tar.gz
dokuwiki-b469737aef969dbd2b79ca3bc106c12ca8dbb031.zip
Merge branch 'master' into refactorResolving
* master: (142 commits) authPDO: extend mysql test to ensure multiple groups are read update DokuWiki install URL update smtp plugin URL update flashplayer URL Revert "Merge pull request #3039 from takuy/video-attributes" Revert "fixed video attribute handling in php8" Revert "more php8 fixes for the video attributes" guard against unsert user name. fixes #3455 remove remaining X-UA-Compatible headers. fixes #3434 more php8 fixes for the video attributes fixed video attribute handling in php8 fix test for draft file fix security problems in draft handling. fixes #3565 fix handling of loading auth backend check CSRF token in draftdel action. fixes #3563 ignore another PSR12 style check for now authplain: properly clean user names Removes use of deprecated create_function() in teests. Replaces them with anonymous functions. Refs #3545 check security token on logout. fixes #3561 create SECURITY.md fixes #3558 ...
Diffstat (limited to 'lib/plugins/extension/script.js')
-rw-r--r--lib/plugins/extension/script.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/plugins/extension/script.js b/lib/plugins/extension/script.js
index 7c915808e..7742b1583 100644
--- a/lib/plugins/extension/script.js
+++ b/lib/plugins/extension/script.js
@@ -64,8 +64,9 @@ jQuery(function(){
DOKU_BASE + 'lib/exe/ajax.php',
{
call: 'plugin_extension',
- ext: extension,
- act: act
+ ext: extension,
+ act: act,
+ sectok: $btn.parents('form').find('input[name=sectok]').val()
},
function (data) {
$btn.css('cursor', '')
@@ -74,12 +75,15 @@ jQuery(function(){
.removeClass('enable')
.text(data.label)
.addClass(data.reverse)
- .parents('li')
+ .parents('li')
.removeClass('disabled')
.removeClass('enabled')
.addClass(data.state);
}
- );
+ ).fail(function() {
+ $btn.css('cursor', '')
+ .removeAttr('disabled');
+ });
});
/**