[fix] minor changes
This commit is contained in:
parent
5ffbd4f492
commit
474d58cecf
@ -899,7 +899,7 @@
|
|||||||
"issingle": 0,
|
"issingle": 0,
|
||||||
"istable": 0,
|
"istable": 0,
|
||||||
"max_attachments": 0,
|
"max_attachments": 0,
|
||||||
"modified": "2017-12-05 06:08:15.602432",
|
"modified": "2017-12-05 06:48:14.804480",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Non Profit",
|
"module": "Non Profit",
|
||||||
"name": "Grant Application",
|
"name": "Grant Application",
|
||||||
@ -955,6 +955,7 @@
|
|||||||
"show_name_in_global_search": 0,
|
"show_name_in_global_search": 0,
|
||||||
"sort_field": "modified",
|
"sort_field": "modified",
|
||||||
"sort_order": "DESC",
|
"sort_order": "DESC",
|
||||||
|
"title_field": "",
|
||||||
"track_changes": 1,
|
"track_changes": 1,
|
||||||
"track_seen": 0
|
"track_seen": 0
|
||||||
}
|
}
|
@ -28,28 +28,6 @@ frappe.ui.form.on('Member', {
|
|||||||
frappe.contacts.clear_address_and_contact(frm);
|
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({
|
frappe.call({
|
||||||
method:"frappe.client.get_value",
|
method:"frappe.client.get_value",
|
||||||
args:{
|
args:{
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import frappe
|
import frappe
|
||||||
from frappe import _
|
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
domain = 'Non Profit'
|
domain = 'Non Profit'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user