Refactor messages view to use master3
This commit is contained in:
parent
84ebf5d929
commit
c3fb86e391
5 changed files with 133 additions and 141 deletions
|
@ -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({
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue