Browse Source

[pos] [cleanup]

version-14
Rushabh Mehta 12 years ago
parent
commit
90442c7630
3 changed files with 7 additions and 4 deletions
  1. +5
    -2
      public/css/common.css
  2. +1
    -1
      public/js/legacy/form.js
  3. +1
    -1
      public/js/wn/form/control.js

+ 5
- 2
public/css/common.css View File

@@ -375,8 +375,11 @@ div#freeze {

.missing-image {
background-color: #eee;
padding: 40px;
width: 112px;
display: table-cell;
vertical-align: middle;
text-align: center;
width: 140px;
height: 140px;
font-size: 32px;
color: #888;
}


+ 1
- 1
public/js/legacy/form.js View File

@@ -278,7 +278,7 @@ _f.Frm.prototype.set_footnote = function(txt) {


_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() {
this.toolbar.refresh()


+ 1
- 1
public/js/wn/form/control.js View File

@@ -40,7 +40,7 @@ wn.ui.form.Control = Class.extend({
// returns "Read", "Write" or "None"
// as strings based on permissions
get_status: function(explain) {
if(!this.doctype)
if(!this.doctype)
return "Write";
return wn.perm.get_field_display_status(this.df,
locals[this.doctype][this.docname], this.perm, explain);


Loading…
Cancel
Save