aboutsummaryrefslogtreecommitdiff
path: root/p/scripts/category.js
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2022-05-15 21:52:52 +0200
committerGravatar GitHub <noreply@github.com> 2022-05-15 21:52:52 +0200
commit807ea755e0bddb814f5c55bdfa5321ce144fe816 (patch)
treeac19704b8bea917d06fca95aecff828db804b204 /p/scripts/category.js
parent0cde4e898f94a10b5da7a221d5ddab904e0f2b1d (diff)
fix preview (#4291)
* fix * Update extra.js * reorga the scripts * Update extra.js * Several fixes https://github.com/FreshRSS/FreshRSS/pull/4291#issuecomment-1125472321 * More fixes * Cleaning * fix pr 4291 * Reorganise some script functions * Remove unused popup-txt And associated function openPopupWithMessage * Fix archiving categories https://github.com/FreshRSS/FreshRSS/pull/4291#issuecomment-1126924602 * Fix stats https://github.com/FreshRSS/FreshRSS/pull/4291#issuecomment-1126983134 * Fix direct subscription E.g. http://localhost/i/?c=subscription&id=735 * Fix subscription add https://github.com/FreshRSS/FreshRSS/pull/4291#issuecomment-1126991621 Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'p/scripts/category.js')
-rw-r--r--p/scripts/category.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/p/scripts/category.js b/p/scripts/category.js
index d83b3b22b..1b1f2f192 100644
--- a/p/scripts/category.js
+++ b/p/scripts/category.js
@@ -154,35 +154,11 @@ function init_draggable() {
};
}
-function archiving() {
- const slider = document.getElementById('slider');
- slider.addEventListener('change', function (e) {
- if (e.target.id === 'use_default_purge_options') {
- slider.querySelectorAll('.archiving').forEach(function (element) {
- element.hidden = e.target.checked;
- if (!e.target.checked) element.style.visibility = 'visible'; // Help for Edge 44
- });
- }
- });
- slider.addEventListener('click', function (e) {
- if (e.target.closest('button[type=reset]')) {
- const archiving = document.getElementById('use_default_purge_options');
- if (archiving) {
- slider.querySelectorAll('.archiving').forEach(function (element) {
- element.hidden = archiving.getAttribute('data-leave-validation') == 1;
- });
- }
- }
- });
-}
-
if (document.readyState && document.readyState !== 'loading') {
init_draggable();
- archiving();
} else if (document.addEventListener) {
document.addEventListener('DOMContentLoaded', function () {
init_draggable();
- archiving();
}, false);
}
// @license-end