Selaa lähdekoodia

[pos] [cleanup]

version-14
Rushabh Mehta 12 vuotta sitten
vanhempi
commit
90442c7630
3 muutettua tiedostoa jossa 7 lisäystä ja 4 poistoa
  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 Näytä tiedosto

@@ -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;
} }


+ 1
- 1
public/js/legacy/form.js Näytä tiedosto

@@ -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()


+ 1
- 1
public/js/wn/form/control.js Näytä tiedosto

@@ -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);


Ladataan…
Peruuta
Tallenna