diff --git a/frappe/public/js/frappe/ui/messages.js b/frappe/public/js/frappe/ui/messages.js index 65cbc48af8..f804648834 100644 --- a/frappe/public/js/frappe/ui/messages.js +++ b/frappe/public/js/frappe/ui/messages.js @@ -122,7 +122,8 @@ frappe.msgprint = function(msg, title) { // setup and bind an action to the primary button if (data.primary_action) { - frappe.msg_dialog.set_primary_action(__(data.primary_action.label || "Done"), data.primary_action.action); + frappe.msg_dialog.set_primary_action(__(data.primary_action.label || "Done"), + data.primary_action.action); } // class "msgprint" is used in tests @@ -144,12 +145,6 @@ frappe.msgprint = function(msg, title) { msg = frappe.utils.replace_newlines(data.message); } - if (data.primary_action) { - frappe.msg_dialog.get_primary_btn().show(); - } else { - frappe.msg_dialog.get_primary_btn().hide(); - } - var msg_exists = false; if(data.clear) { frappe.msg_dialog.msg_area.empty(); diff --git a/frappe/social/doctype/energy_point_log/energy_point_list.js b/frappe/social/doctype/energy_point_log/energy_point_log_list.js similarity index 100% rename from frappe/social/doctype/energy_point_log/energy_point_list.js rename to frappe/social/doctype/energy_point_log/energy_point_log_list.js