From cebce1bb9fcefc0219bac76a32b50c96d80758ae Mon Sep 17 00:00:00 2001 From: Anna Dabrowska Date: Thu, 8 Sep 2022 13:15:03 +0200 Subject: [PATCH] Fix overview table not updating after namespace is approved --- plugin.info.txt | 2 +- script.js | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/plugin.info.txt b/plugin.info.txt index 0bed96f..a5608e1 100644 --- a/plugin.info.txt +++ b/plugin.info.txt @@ -1,7 +1,7 @@ base publish author Jarrod Lowe, Andreas Gohr, Dominik Eckelmann email dokuwiki@cosmocode.de -date 2022-01-16 +date 2022-09-08 name Publish Plugin desc Integrate a publishing process into DokuWiki url http://www.dokuwiki.org/plugin:publish diff --git a/script.js b/script.js index ac07979..bf08d7e 100644 --- a/script.js +++ b/script.js @@ -31,16 +31,15 @@ jQuery( document ).ready(function () { }, function(data) { $_this.parent().parent().siblings('tr.apr_table').each(function(index) { - var id = jQuery(this).find('a').first().text(); - var pageNamespace = id.substr(0,id.lastIndexOf(':')); - if (pageNamespace === namespace) { - jQuery(this).hide('slow'); - } + var id = jQuery(this).find('a').first().text(); + var pageNamespace = id.substr(0,id.lastIndexOf(':')); + if (pageNamespace === namespace) { + jQuery(this).hide('slow'); } - ); + }); $_this.parent().parent().hide('slow'); }, - 'json' + null ); }); });