aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2024-01-21 09:54:59 +0000
committerpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2024-01-21 09:54:59 +0000
commitb6f637fa328bfb18ee5eff593d74dae7f5b0222c (patch)
tree3f5b9136da03468dc0a00550e91c44ec265ccec1 /scripts
parent88186953fad6bcd029da90c8e62a9ecdb3c0a3ce (diff)
downloadpmwiki.svn-b6f637fa328bfb18ee5eff593d74dae7f5b0222c.tar.bz2
Revert PmFilterable, will move to Cookbook.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4583 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts')
-rw-r--r--scripts/upload.php2
-rw-r--r--scripts/utils.php13
2 files changed, 3 insertions, 12 deletions
diff --git a/scripts/upload.php b/scripts/upload.php
index 370a904a..b898da53 100644
--- a/scripts/upload.php
+++ b/scripts/upload.php
@@ -1,5 +1,5 @@
<?php if (!defined('PmWiki')) exit();
-/* Copyright 2004-2023 Patrick R. Michaud (pmichaud@pobox.com)
+/* Copyright 2004-2024 Patrick R. Michaud (pmichaud@pobox.com)
This file is part of PmWiki; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License, or
diff --git a/scripts/utils.php b/scripts/utils.php
index c855b969..2912b617 100644
--- a/scripts/utils.php
+++ b/scripts/utils.php
@@ -1,5 +1,5 @@
<?php if (!defined('PmWiki')) exit();
-/* Copyright 2019-2023 Petko Yotov www.pmwiki.org/petko
+/* Copyright 2019-2024 Petko Yotov www.pmwiki.org/petko
This file is part of PmWiki; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License, or
@@ -21,15 +21,8 @@
To disable all these functions, add to config.php:
$EnablePmUtils = 0;
*/
-SDVA($PmFilterable, array(
- 'Enable' => 0,
- 'Selector' => 'ul.filterable,ol.filterable,table.filterable',
- 'MinItems' => 5,
- 'PlaceholderTable' => XL('Filter table...'),
- 'PlaceholderList' => XL('Filter list...'),
-));
function PmUtilsJS() {
- global $PmTOC, $EnableSortable, $EnableHighlight, $EnableLocalTimes, $ToggleNextSelector, $PmFilterable,
+ global $PmTOC, $EnableSortable, $EnableHighlight, $EnableLocalTimes, $ToggleNextSelector,
$LinkFunctions, $FarmD, $HTMLStylesFmt, $HTMLHeaderFmt, $EnablePmSyntax, $CustomSyntax, $EnableCopyCode;
$utils = "$FarmD/pub/pmwiki-utils.js";
@@ -53,7 +46,6 @@ function PmUtilsJS() {
|| $cc
|| IsEnabled($ToggleNextSelector, 0)
|| IsEnabled($EnableLocalTimes, 0)
- || $PmFilterable['Enable']
) && file_exists($utils)) {
$mtime = filemtime($utils);
SDVA($HTMLHeaderFmt, array('pmwiki-utils' =>
@@ -61,7 +53,6 @@ function PmUtilsJS() {
data-sortable='".@$EnableSortable."' data-highlight='".@$EnableHighlight."'
data-copycode='$cc'
data-pmtoc='".pm_json_encode(@$PmTOC, true)."'
- data-filterable='".pm_json_encode($PmFilterable, true)."'
data-toggle='".PHSC(@$ToggleNextSelector, ENT_QUOTES)."'
data-localtimes='".@$EnableLocalTimes."' data-fullname='{\$FullName}'></script>"
));