From 058fcfce06a5f54d7a4ed33b34974313dc376499 Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Mon, 12 Jan 2015 17:17:31 +0100 Subject: [PATCH] PHRAS-284 Fix javascript issue --- templates/web/report/report_layout_child.html.twig | 12 ++++++------ www/skins/report/report.js | 7 ++++++- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/templates/web/report/report_layout_child.html.twig b/templates/web/report/report_layout_child.html.twig index d871c098bd..89227c68d8 100644 --- a/templates/web/report/report_layout_child.html.twig +++ b/templates/web/report/report_layout_child.html.twig @@ -178,12 +178,12 @@
- + + + + +
diff --git a/www/skins/report/report.js b/www/skins/report/report.js index ffce467cb6..ffa7c102d0 100644 --- a/www/skins/report/report.js +++ b/www/skins/report/report.js @@ -74,9 +74,14 @@ function bindEvents() { loadDash(); }); //load all the report - $('form .formsubmiter').bind('click', function () { + $('form input.formsubmiter').bind('click', function () { submiterAction($(this)); }); + + $('form select.formsubmiter').bind('change', function () { + submiterAction($("option:selected", $(this))); + }); + //reload the content by pressing enter key, it concerns the number of result by report $('form .entersubmiter').bind('keypress', function (event) { if (event.keyCode == '13') {