From 4545987c9ffe9bfa3d7092736bba5db3ebd7779d Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 7 Aug 2013 19:08:12 +0530 Subject: [PATCH] [fix] [minor] show percent fields as right aligned, query report ajax should be of type GET --- public/js/wn/form/formatters.js | 2 +- public/js/wn/views/query_report.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/js/wn/form/formatters.js b/public/js/wn/form/formatters.js index 1ed15d9c3b..5d72cc6c2b 100644 --- a/public/js/wn/form/formatters.js +++ b/public/js/wn/form/formatters.js @@ -20,7 +20,7 @@ wn.form.formatters = { return value==null ? "": cint(value); }, Percent: function(value) { - return flt(value, 2) + "%"; + return "
" + flt(value, 2) + "%" + "
"; }, Currency: function(value, docfield, options, doc) { var currency = wn.meta.get_field_currency(docfield, doc); diff --git a/public/js/wn/views/query_report.js b/public/js/wn/views/query_report.js index ec92dcc609..318dd356d5 100644 --- a/public/js/wn/views/query_report.js +++ b/public/js/wn/views/query_report.js @@ -144,6 +144,7 @@ wn.views.QueryReport = Class.extend({ }) return wn.call({ method: "webnotes.widgets.query_report.run", + type: "GET", args: { "report_name": me.report_name, filters: filters