From c5fc0559289a5828b27d6ec9adca4a3d0eb2f0c8 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Sun, 27 Jan 2013 17:49:18 +0530 Subject: [PATCH] fixes in new button in listing --- public/js/wn/ui/listing.js | 2 +- public/js/wn/views/reportview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/wn/ui/listing.js b/public/js/wn/ui/listing.js index 981fe8cf2f..b32395faa7 100644 --- a/public/js/wn/ui/listing.js +++ b/public/js/wn/ui/listing.js @@ -65,7 +65,7 @@ wn.ui.Listing = Class.extend({ if(wn.boot.profile.can_create.indexOf(this.opts.new_doctype)==-1) { this.opts.new_doctype = null; } else { - this.opts.new_doctype = wn._(this.opts.new_doctype); + this.opts.new_doctype = this.opts.new_doctype; } } if(!this.opts.no_result_message) { diff --git a/public/js/wn/views/reportview.js b/public/js/wn/views/reportview.js index ab32f49a9f..035b32abef 100644 --- a/public/js/wn/views/reportview.js +++ b/public/js/wn/views/reportview.js @@ -12,7 +12,7 @@ wn.views.ReportViewPage = Class.extend({ this.docname = docname; this.page_name = wn.get_route_str(); this.make_page(); - + var me = this; wn.model.with_doctype(this.doctype, function() { me.make_report_view();