Comments (1)
Discussed techniques to determine item selection state without JavaScript:
- CSS selector
:has(:checked)
on the sibling element with a list of items - a server-side class/attribute added to the moderation tools element when a stored selection is non-empty
The second method may yield false positives when the stored selection is de-selected client-side.
Therefore, the sticky position may be best applied:
- using JavaScript, when all selected items are known (managed cookie values)
- using CSS, when the server-side flag indicates empty stored selection, and items are selected in the DOM (avoids suggesting that the current-page selection is exhaustive)
Conversely, the tool selection may be hidden:
- using JavaScript, when all selected items are known (managed cookie values)
- using CSS, when the server-side flag indicates empty stored selection, and no items are selected in the DOM
The tool would be shown by default, and conditionally hidden via CSS to avoid breaking the feature in case of selector failure.
from mybb.
Related Issues (20)
- MyBB 1.8.37 Error 500 "PHP Fatal error: Cannot redeclare error()" HOT 7
- Deprecated service used for 2FA image generation
- Bug when removing a member from a group that could become invisible HOT 2
- Missing "my_post_key" code in cancel subscription email notification HOT 2
- Restrict loading plugins files during `NO_PLUGINS`
- Graceful errors for failing plugins in ACP
- utf8_decode is deprecated since PHP 8.2
- Allow the use of html in emails HOT 1
- Group promotions ignore the user display group when promoting users HOT 1
- PHP 8 Warning: Undefined array key "quick_login" HOT 1
- Never Visited: Staff List & ModCP Bug HOT 3
- Remove ICQ field
- Search ascending/descending is wrong, only does descending
- Search ascending/descending is wrong, only does descending
- Remove Simple Mode for stylesheet editing in ACP
- Warnings on newreply or newthread for guests writing in preview mode
- Security Log does not add the proper seed for admin permissions
- Security Log SQL error for nonexistent accounts during ACP login
- Support independent upgrades in legacy series
- Add 1.9.0 upgrade script
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mybb.