diff --git a/frappe/core/doctype/event/event.js b/frappe/core/doctype/event/event.js index 5503e565e8..30c0737de5 100644 --- a/frappe/core/doctype/event/event.js +++ b/frappe/core/doctype/event/event.js @@ -1,6 +1,14 @@ // Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors // MIT License. See license.txt +frappe.ui.form.on("Event", "refresh", function(frm) { + if(frm.doc.ref_type && frm.doc.ref_name) { + frm.set_intro('Reference: ' + + frm.doc.ref_name + ''); + } +}); + + cur_frm.cscript.repeat_on = function(doc, cdt, cdn) { if(doc.repeat_on==="Every Day") { $.each(["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"], function(i,v) {