• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • This community is user driven. Be polite with other users.
    • We recommend purchasing a Chevereto license to participate in this community.
    • Purchase a Community Subscription to get even faster ticket response times.

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