codacy fixes

This commit is contained in:
Rucha Mahabal 2019-07-12 14:34:43 +05:30
parent 9e35bff55c
commit 2b7064a348
2 changed files with 3 additions and 4 deletions

View File

@ -3,7 +3,6 @@
frappe.ui.form.on('Email Campaign', { frappe.ui.form.on('Email Campaign', {
// refresh: function(frm) { // refresh: function(frm) {
// } // }
email_campaign_for: function(frm) { email_campaign_for: function(frm) {
frm.set_value('recipient', ''); frm.set_value('recipient', '');

View File

@ -3,9 +3,9 @@ frappe.listview_settings['Email Campaign'] = {
var colors = { var colors = {
"Unsubscribed": "red", "Unsubscribed": "red",
"Scheduled": "blue", "Scheduled": "blue",
"In Progress": "orange", "In Progress": "orange",
"Completed": "green" "Completed": "green"
} };
return [__(doc.status), colors[doc.status], "status,=," + doc.status]; return [__(doc.status), colors[doc.status], "status,=," + doc.status];
} }
}; };