Przeglądaj źródła

fixes in new button in listing

version-14
Anand Doshi 12 lat temu
rodzic
commit
c5fc055928
2 zmienionych plików z 2 dodań i 2 usunięć
  1. +1
    -1
      public/js/wn/ui/listing.js
  2. +1
    -1
      public/js/wn/views/reportview.js

+ 1
- 1
public/js/wn/ui/listing.js Wyświetl plik

@@ -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) {


+ 1
- 1
public/js/wn/views/reportview.js Wyświetl plik

@@ -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();


Ładowanie…
Anuluj
Zapisz