reportview bugfix

This commit is contained in:
Rushabh Mehta 2012-12-05 10:40:12 +05:30
parent fe5b34070f
commit eb0b26b0f3

View file

@ -43,11 +43,11 @@ wn.views.ReportViewPage = Class.extend({
wn.views.ReportView = wn.ui.Listing.extend({
init: function(opts) {
var me = this;
$(page).find('.layout-main').html('Loading Report...');
$(page).find('.layout-main').empty();
$(this.page).find('.layout-main').html('Loading Report...');
$(this.page).find('.layout-main').empty();
$.extend(this, opts);
this.can_delete = wn.model.can_delete(me.doctype);
this.tab_name = '`tab'+doctype+'`';
this.tab_name = '`tab'+this.doctype+'`';
this.setup();
},