added reference in link, fixes frappe/erpnext#811
This commit is contained in:
parent
73730ccf1f
commit
60b6a38400
1 changed files with 8 additions and 0 deletions
|
|
@ -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: <a href="#Form/'+frm.doc.ref_type+'/'+frm.doc.ref_name+'">'
|
||||
+ frm.doc.ref_name + '</a>');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue