Refactor messages view to use master3

This commit is contained in:
Lance Edgar 2017-12-04 17:52:25 -06:00
parent 84ebf5d929
commit c3fb86e391
5 changed files with 133 additions and 141 deletions

View file

@ -15,17 +15,17 @@
// validate message before sending
function validate_message_form() {
var form = $('#new-message');
var form = $('#deform');
if (! form.find('input[name="Message--recipients"]').val()) {
if (! form.find('input[name="recipients_"]').val()) {
alert("You must specify some recipient(s) for the message.");
$('.recipients input').data('ui-tagit').tagInput.focus();
$('.recipients_ input').data('ui-tagit').tagInput.focus();
return false;
}
if (! form.find('input[name="Message--subject"]').val()) {
if (! form.find('input[name="subject"]').val()) {
alert("You must provide a subject for the message.");
form.find('input[name="Message--subject"]').focus();
form.find('input[name="subject"]').focus();
return false;
}
@ -34,7 +34,7 @@
$(function() {
var recipients = $('.recipients input');
var recipients = $('.recipients_ input');
recipients.tagit({

View file

@ -26,7 +26,7 @@
<%def name="extra_styles()">
${parent.extra_styles()}
<style type="text/css">
.field-wrapper.recipients .everyone {
.recipients .everyone {
cursor: pointer;
display: none;
}