[minor] note image modal in pop-up (#3095)

This commit is contained in:
Prateeksha Singh 2017-04-17 15:05:34 +05:30 committed by Rushabh Mehta
parent ff2e37135d
commit 2e8b2eb756

View file

@ -1806,15 +1806,9 @@ frappe.ui.form.ControlTextEditor = frappe.ui.form.ControlCode.extend({
}
} else {
this.upload_options.on_attach = function(fileobj, dataurl) {
me.editor.summernote('insertImage', dataurl);
me.image_dialog.hide();
me.fileobj = fileobj;
me.dataurl = dataurl;
if(me.on_attach) {
me.on_attach()
}
if(me.df.on_attach) {
me.df.on_attach(fileobj, dataurl);
}
frappe.hide_progress();
}
}
},