@@ -375,8 +375,11 @@ div#freeze { | |||||
.missing-image { | .missing-image { | ||||
background-color: #eee; | background-color: #eee; | ||||
padding: 40px; | |||||
width: 112px; | |||||
display: table-cell; | |||||
vertical-align: middle; | |||||
text-align: center; | |||||
width: 140px; | |||||
height: 140px; | |||||
font-size: 32px; | font-size: 32px; | ||||
color: #888; | color: #888; | ||||
} | } | ||||
@@ -278,7 +278,7 @@ _f.Frm.prototype.set_footnote = function(txt) { | |||||
_f.Frm.prototype.add_custom_button = function(label, fn, icon) { | _f.Frm.prototype.add_custom_button = function(label, fn, icon) { | ||||
this.appframe.add_button(label, fn, icon || "icon-arrow-right"); | |||||
return this.appframe.add_button(label, fn, icon || "icon-arrow-right"); | |||||
} | } | ||||
_f.Frm.prototype.clear_custom_buttons = function() { | _f.Frm.prototype.clear_custom_buttons = function() { | ||||
this.toolbar.refresh() | this.toolbar.refresh() | ||||
@@ -40,7 +40,7 @@ wn.ui.form.Control = Class.extend({ | |||||
// returns "Read", "Write" or "None" | // returns "Read", "Write" or "None" | ||||
// as strings based on permissions | // as strings based on permissions | ||||
get_status: function(explain) { | get_status: function(explain) { | ||||
if(!this.doctype) | |||||
if(!this.doctype) | |||||
return "Write"; | return "Write"; | ||||
return wn.perm.get_field_display_status(this.df, | return wn.perm.get_field_display_status(this.df, | ||||
locals[this.doctype][this.docname], this.perm, explain); | locals[this.doctype][this.docname], this.perm, explain); | ||||