fixed filename issue in downloadify export

This commit is contained in:
Anand Doshi 2012-10-12 12:29:48 +05:30
parent 2330ed20c8
commit f300ce4faa
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ wn.markdown = function(txt) {
return wn.md2html.makeHtml(txt);
}
wn.downloadify = function(data, roles) {
wn.downloadify = function(data, roles, me) {
if(roles && roles.length && !has_common(roles, user_roles)) {
msgprint("Export not allowed. You need " + wn.utils.comma_or(roles)
+ " Role to export.");

View file

@ -367,7 +367,7 @@ wn.views.GridReport = Class.extend({
},
export: function() {
wn.downloadify(wn.slickgrid_tools.get_view_data(this.columns, this.dataView),
["Report Manager", "System Manager"]);
["Report Manager", "System Manager"], this);
return false;
},
apply_filters: function(item) {