From 64483e6e18b5dcdb41e4d1eea0d2f495e45e0179 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 23 May 2012 13:41:11 +0530 Subject: [PATCH] fix in report builder's print function --- public/js/report-legacy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/report-legacy.js b/public/js/report-legacy.js index c33ce6ca84..6f7fae671d 100644 --- a/public/js/report-legacy.js +++ b/public/js/report-legacy.js @@ -208,7 +208,7 @@ c.style.color=row.style.color;if(row.style.backgroundColor) c.style.backgroundColor=row.style.backgroundColor;if(row.style.fontWeight) c.style.fontWeight=row.style.fontWeight;if(row.style.fontSize) c.style.fontSize=row.style.fontSize;var w=this.get_col_width(ci);if(w)$w(c,w);c.val=val;var me=this;c.div=$a(c,'div','',{width:(cint(w)-7)+'px'});$s(c.div,val,this.coltypes[ci],this.coloptions[ci])} -_r.DataTable.prototype.do_print=function(){this._get_query(true);args={query:this.query,title:this.rep_name?this.rep_name:this.dt,colnames:null,colwidhts:null,coltypes:null,has_index:this.has_index,has_headings:this.has_headings,check_limit:1,is_simple:(this.is_simple?'Yes':''),sc_id:(this.search_criteria?this.search_criteria.name:''),filter_values:docstring(this.filter_vals),finder:this.finder?this.finder:null};wn.require('js/print_query.js');_p.print_query=new _p.PrintQuery();_p.print_query.show_dialog(args);} +_r.DataTable.prototype.do_print=function(){this._get_query(true);args={query:this.query,title:this.rep_name?this.rep_name:this.dt,colnames:null,colwidhts:null,coltypes:null,has_index:this.has_index,has_headings:this.has_headings,check_limit:1,is_simple:(this.is_simple?'Yes':''),sc_id:(this.search_criteria?this.search_criteria.name:''),filter_values:docstring(this.filter_vals),};wn.require('js/print_query.js');_p.print_query=new _p.PrintQuery();_p.print_query.show_dialog(args);} _r.DataTable.prototype.do_export=function(){this._get_query(true);var me=this;export_query(this.query,function(q){export_csv(q,(me.rep_name?me.rep_name:me.dt),(me.search_criteria?me.search_criteria.name:''),me.is_simple,docstring(me.filter_vals));});} _r.DataTable.prototype.do_calc=function(){_r.show_calc(this.tab,this.colnames,this.coltypes,1);} _r.DataTable.prototype.get_col_data=function(colname){var ci=0;if(!this.htab)return[];for(var i=1;i