[fix] minor changes
This commit is contained in:
parent
5ffbd4f492
commit
474d58cecf
@ -899,7 +899,7 @@
|
||||
"issingle": 0,
|
||||
"istable": 0,
|
||||
"max_attachments": 0,
|
||||
"modified": "2017-12-05 06:08:15.602432",
|
||||
"modified": "2017-12-05 06:48:14.804480",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Non Profit",
|
||||
"name": "Grant Application",
|
||||
@ -955,6 +955,7 @@
|
||||
"show_name_in_global_search": 0,
|
||||
"sort_field": "modified",
|
||||
"sort_order": "DESC",
|
||||
"title_field": "",
|
||||
"track_changes": 1,
|
||||
"track_seen": 0
|
||||
}
|
@ -28,28 +28,6 @@ frappe.ui.form.on('Member', {
|
||||
frappe.contacts.clear_address_and_contact(frm);
|
||||
}
|
||||
|
||||
var email_list = frappe.utils.split_emails(v);
|
||||
if (!email_list) {
|
||||
// invalid email
|
||||
return '';
|
||||
} else {
|
||||
var invalid_email = false;
|
||||
email_list.forEach(function(email) {
|
||||
if (!validate_email(email)) {
|
||||
frappe.msgprint(__("Invalid Email: {0}", [email]));
|
||||
invalid_email = true;
|
||||
}
|
||||
});
|
||||
|
||||
if (invalid_email) {
|
||||
// at least 1 invalid email
|
||||
return '';
|
||||
} else {
|
||||
// all good
|
||||
return v;
|
||||
}
|
||||
}
|
||||
|
||||
frappe.call({
|
||||
method:"frappe.client.get_value",
|
||||
args:{
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
from frappe import _
|
||||
|
||||
def execute():
|
||||
domain = 'Non Profit'
|
||||
|
@ -11,7 +11,7 @@ def get_context(context):
|
||||
pass
|
||||
elif frappe.request.method=='POST':
|
||||
chapter.append('members', dict(
|
||||
user=frappe.session.user,
|
||||
user=frappe.session.user,
|
||||
introduction=frappe.form_dict.introduction,
|
||||
website_url=frappe.form_dict.website_url,
|
||||
enabled=1
|
||||
|
Loading…
x
Reference in New Issue
Block a user