baseUrl: baseUrl + '/dashboard/index',
xLog: <%= xLog -%>,
yLog: <%= yLog -%>,
- noData: '<%= message('no_data') -%>',
- noMainMetric: '<%= message('widget.measure_filter.no_main_metric') -%>'
+ noData: '<%= escape_javascript message('no_data') -%>',
+ noMainMetric: '<%= escape_javascript message('widget.measure_filter.no_main_metric') -%>'
})
.render('#<%= containerId -%>');
.source(baseUrl + '/measures/search_filter?' + query)
.metricsPriority(metrics)
.options({
- maxItemsReachedMessage: '<%= message("widget.measure_filter_histogram.max_items_reached", :params => [maxItems]) -%>',
+ maxItemsReachedMessage: '<%= escape_javascript message("widget.measure_filter_histogram.max_items_reached", :params => [maxItems]) -%>',
baseUrl: baseUrl + '/dashboard/index',
- noData: '<%= message('no_data') -%>'
+ noData: '<%= escape_javascript message('no_data') -%>'
})
.render('#<%= containerId -%>');
.height(<%= chartHeight %>)
.options({
baseUrl: baseUrl + '/dashboard/index',
- noData: '<%= message('no_data') -%>',
- noMainMetric: '<%= message('widget.measure_filter.no_main_metric') -%>'
+ noData: '<%= escape_javascript message('no_data') -%>',
+ noMainMetric: '<%= escape_javascript message('widget.measure_filter.no_main_metric') -%>'
})
.render('#<%= containerId -%>');
.options({
heightInPercents: '<%= widget_properties['heightInPercents'] -%>',
maxItems: <%= maxItems -%>,
- maxItemsReachedMessage: '<%= message("widget.measure_filter_histogram.max_items_reached", :params => [maxItems]) -%>',
+ maxItemsReachedMessage: '<%= escape_javascript message("widget.measure_filter_histogram.max_items_reached", :params => [maxItems]) -%>',
baseUrl: baseUrl + '/dashboard/index',
- noData: '<%= message('no_data') -%>',
- resource: '<%= filter.name -%>'
+ noData: '<%= escape_javascript message('no_data') -%>',
+ resource: '<%= escape_javascript filter.name -%>'
})
.render('#<%= containerId -%>');