From 40699e4e65c68d9fdde7ab78096ef0238d4e4b7b Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Fri, 4 Dec 2020 14:59:02 +0530 Subject: [PATCH] feat: allow image in data pill --- frappe/public/js/frappe/dom.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frappe/public/js/frappe/dom.js b/frappe/public/js/frappe/dom.js index 957d7a0d9a..db9407ed53 100644 --- a/frappe/public/js/frappe/dom.js +++ b/frappe/public/js/frappe/dom.js @@ -293,10 +293,13 @@ frappe.unscrub = function(txt) { return frappe.model.unscrub(txt); }; -frappe.get_data_pill = (label, target_id=null, remove_action=null) => { +frappe.get_data_pill = (label, target_id=null, remove_action=null, image=null) => { let data_pill_wrapper = $(` `);