Procházet zdrojové kódy

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

version-14
Rushabh Mehta před 12 roky
rodič
revize
3dd62e7a3f
3 změnil soubory, kde provedl 6 přidání a 8 odebrání
  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 Zobrazit soubor

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


_f.Frm.prototype.setup_print = function() { _f.Frm.prototype.setup_print = function() {
this.print_formats = wn.meta.get_print_formats(this.meta.name); 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]; this.print_sel.value = this.print_formats[0];
} }




+ 3
- 1
public/js/legacy/widgets/form/print_format.js Zobrazit soubor

@@ -115,7 +115,9 @@ $.extend(_p, {
c.removeChild(c.cur_sel); c.removeChild(c.cur_sel);
} }
c.appendChild(cur_frm.print_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; _p.dialog = d;


+ 1
- 5
public/js/wn/form/script_manager.js Zobrazit soubor

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


// css // css


Načítá se…
Zrušit
Uložit