PHRAS-284 Fix javascript issue

This commit is contained in:
Nicolas Le Goff
2015-01-12 17:17:31 +01:00
parent b118d4d947
commit 058fcfce06
2 changed files with 12 additions and 7 deletions

View File

@@ -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') {