diff --git a/public/js/wn/views/listview.js b/public/js/wn/views/listview.js
index 71b194b0e6..490c0a4fda 100644
--- a/public/js/wn/views/listview.js
+++ b/public/js/wn/views/listview.js
@@ -348,11 +348,10 @@ wn.views.ListView = Class.extend({
fully_delivered: (data[field] > 99 ? 'bar-complete' : ''),
label: label
}
- $(parent).append(repl(' \
+ \
', args));
- $(parent).attr("title", repl("%(percent)s% %(label)s", args));
},
render_icon: function(parent, icon_class, label) {
var icon_html = "";
diff --git a/public/js/wn/views/query_report.js b/public/js/wn/views/query_report.js
index a2418ed439..b59f4475d3 100644
--- a/public/js/wn/views/query_report.js
+++ b/public/js/wn/views/query_report.js
@@ -75,7 +75,7 @@ wn.views.QueryReport = Class.extend({
var export_btn = this.appframe.add_button("", function() {
- me.export();
+ me.export_report();
});
wn.utils.disable_export_btn(export_btn);
},
@@ -141,12 +141,23 @@ wn.views.QueryReport = Class.extend({
$(f.wrapper).find("input, button").css({"margin-top":"-4px"});
else if(f.df.fieldtype == "Date")
$(f.wrapper).css({"margin-right":"-15px"});
+
+ if(df.get_query) f.get_query = df.get_query;
});
+
+ this.set_filters_by_name();
},
clear_filters: function() {
this.filters = [];
this.appframe.toolbar.find(".filters").remove();
},
+ set_filters_by_name: function() {
+ this.filters_by_name = {};
+
+ for(var i in this.filters) {
+ this.filters_by_name[this.filters[i].df.fieldname] = this.filters[i];
+ }
+ },
refresh: function() {
// Run
var me =this;
@@ -387,7 +398,7 @@ wn.views.QueryReport = Class.extend({
me.dataView.refresh();
});
},
- export: function() {
+ export_report: function() {
var result = $.map(wn.slickgrid_tools.get_view_data(this.columns, this.dataView),
function(row) {
return [row.splice(1)];