Parcourir la source

[print] fix wnframework #192, fix in journal voucher

version-14
Rushabh Mehta il y a 12 ans
Parent
révision
3dd62e7a3f
3 fichiers modifiés avec 6 ajouts et 8 suppressions
  1. +2
    -2
      public/js/legacy/widgets/form/form.js
  2. +3
    -1
      public/js/legacy/widgets/form/print_format.js
  3. +1
    -5
      public/js/wn/form/script_manager.js

+ 2
- 2
public/js/legacy/widgets/form/form.js Voir le fichier

@@ -212,8 +212,8 @@ _f.Frm.prototype.setup_std_layout = function() {

_f.Frm.prototype.setup_print = function() {
this.print_formats = wn.meta.get_print_formats(this.meta.name);
this.print_sel = $a(null, 'select', '', {width:'160px'});
add_sel_options(this.print_sel, this.print_formats);
this.print_sel = $("<select>")
.css({"width": "160px"}).add_options(this.print_formats).get(0);
this.print_sel.value = this.print_formats[0];
}



+ 3
- 1
public/js/legacy/widgets/form/print_format.js Voir le fichier

@@ -115,7 +115,9 @@ $.extend(_p, {
c.removeChild(c.cur_sel);
}
c.appendChild(cur_frm.print_sel);
c.cur_sel = cur_frm.print_sel;
c.cur_sel = cur_frm.print_sel;
if(cur_frm.$print_view_select && cur_frm.$print_view_select.val())
c.cur_sel.value= cur_frm.$print_view_select.val();
}
_p.dialog = d;


+ 1
- 5
public/js/wn/form/script_manager.js Voir le fichier

@@ -18,11 +18,7 @@ wn.ui.form.ScriptManager = Class.extend({
// js
var cs = doctype.__js;
if(cs) {
try {
var tmp = eval(cs);
} catch(e) {
this.log_error("eval", e);
}
var tmp = eval(cs);
}

// css


Chargement…
Annuler
Enregistrer