summaryrefslogtreecommitdiffstats
path: root/app/views/queries
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-09 19:59:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-09 19:59:54 +0000
commitfd3c08aaa107e2c5a412a06aea6890b147e46aaf (patch)
tree6e55b3f482eddc77ff7cc7f593aa0754e9494a0b /app/views/queries
parent72f59192525bd6dc3af2cfa00d5b184892335c8d (diff)
downloadredmine-fd3c08aaa107e2c5a412a06aea6890b147e46aaf.tar.gz
redmine-fd3c08aaa107e2c5a412a06aea6890b147e46aaf.zip
Don't preload all query filters (#24787).
git-svn-id: http://svn.redmine.org/redmine/trunk@16170 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/queries')
-rw-r--r--app/views/queries/_filters.html.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/queries/_filters.html.erb b/app/views/queries/_filters.html.erb
index 13dcc704d..cb95df1c8 100644
--- a/app/views/queries/_filters.html.erb
+++ b/app/views/queries/_filters.html.erb
@@ -3,7 +3,9 @@ var operatorLabels = <%= raw_json Query.operators_labels %>;
var operatorByType = <%= raw_json Query.operators_by_filter_type %>;
var availableFilters = <%= raw_json query.available_filters_as_json %>;
var labelDayPlural = <%= raw_json l(:label_day_plural) %>;
-var allProjects = <%= raw_json query.all_projects_values %>;
+
+var filtersUrl = <%= raw_json queries_filter_path(:project_id => @query.project.try(:id), :type => @query.type) %>;
+
$(document).ready(function(){
initFilters();
<% query.filters.each do |field, options| %>