diff --git a/frappe/public/js/frappe/misc/utils.js b/frappe/public/js/frappe/misc/utils.js index 6144f8e9e8..2de69a0b32 100644 --- a/frappe/public/js/frappe/misc/utils.js +++ b/frappe/public/js/frappe/misc/utils.js @@ -185,21 +185,20 @@ frappe.utils = { me.intro_area = null; } }, - set_footnote: function(footnote_area, wrapper, txt) { - if(!footnote_area) { - footnote_area = $('
')) - txt = '
' + txt + '
'; - footnote_area.html(txt); + if(txt.search(//)==-1) txt = '
' + txt + '
'; + me.footnote_area.html(txt); } else { - footnote_area.remove(); - footnote_area = null; + me.footnote_area.remove(); + me.footnote_area = null; } - return footnote_area; + return me.footnote_area; }, get_args_dict_from_url: function(txt) { var args = {};