-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tidied this screen #905
base: master
Are you sure you want to change the base?
Tidied this screen #905
Conversation
- Messages now split into two tables, all messages, and messages in need of moderation (need dev help to do the logic here) - Removed moderation controls (they'll be on the message screen #904) - Public columns are now a single column with a checkbox toggle control (need a dev to wire this up) - Message count now includes a # to moderate (needs wiring up by a dev)
|
@wrightmartin I tried to cherry pick the checkbox part of this out as a separate change, but I'm not sure how it's meant to work. In the current version, the eye is a |
@tmtmtmtm hmm, no, I think it would work best as it was before, the checkbox should submit. @chrismytton @duncanparkes any ideas if this is possible? |
@tmtmtmtm @wrightmartin A <form>
<input type="checkbox">
<button type="submit">Save</button>
</form>
<script>
$(function(){
$(':checkbox').on('change', function(){
$(this).parents('form').submit();
}).siblings('button').hide();
});
</script> Or something. |
I talked to Chris about this on the train this morning, and the best we could come up with that would actually still work plausibly well without JS was to have the default version be the button (as the current live version), and have the JS replace that with the checkbox, that it then also traps and auto-submits. |
This is WIP, please do not merge