[fix] attach image refresh, fixes frappe/erpnext#9725

This commit is contained in:
Rushabh Mehta 2017-07-08 13:10:17 +05:30
parent 4bdd483d4e
commit 4fbb05d1ef

View file

@ -1166,6 +1166,7 @@ frappe.ui.form.ControlAttachImage = frappe.ui.form.ControlAttach.extend({
this.set_image();
},
refresh_input: function() {
this._super();
$(this.wrapper).find('.btn-attach').addClass('hidden');
this.set_image();
if(this.get_status()=="Read") {