• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

NSFW Checkbox checked="checked" not working

Status
Not open for further replies.

outkast

Chevereto Member
For the NSFW tag, I've historically modified it so that its checked by default. Would be cool if it remembered the user's last choice. But I just upgraded to 3.7 and I can't get it to work.

\src\chevereto\app\themes\Peafowl\snippets\anywhere_upload.php
Line 77 & 190 have the input and I've tried both 'checked' and checked=checked and both values get ignored when displayed.

This happens in firefox, chrome & ie. The DOM does report that defaultChecked = true, but checked = false

Any ideas as to what would cause this?
 
Open app/lib/chevereto.js and change this:

Code:
$("[name=upload-nsfw]", this.selectors.root).prop("checked", "");

To this:

Code:
$("[name=upload-nsfw]", this.selectors.root).prop("checked", this.defaultChecked);

Note: This change will be included in v3.7.1
 
Last edited:
Status
Not open for further replies.
Back
Top