From 6fb3650387a030248e2e2b127a049ddc82e504e3 Mon Sep 17 00:00:00 2001 From: Kevin Duret <kduret@centreon.com> Date: Wed, 2 May 2018 10:27:44 +0200 Subject: [PATCH] Revert "Revert "fix(jQuery): fix broken input in reporting_dashboard"" This reverts commit d176c1ca9dd687759c8b4bd908e5bc946b05fa43. --- .../reporting/dashboard/template/viewHostGroupLog.ihtml | 6 +++--- www/include/reporting/dashboard/template/viewHostLog.ihtml | 6 +++--- .../reporting/dashboard/template/viewServicesGroupLog.ihtml | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/www/include/reporting/dashboard/template/viewHostGroupLog.ihtml b/www/include/reporting/dashboard/template/viewHostGroupLog.ihtml index 8d7911b5a4..558a83c0ab 100644 --- a/www/include/reporting/dashboard/template/viewHostGroupLog.ihtml +++ b/www/include/reporting/dashboard/template/viewHostGroupLog.ihtml @@ -152,7 +152,7 @@ maxDate: '-1', onSelect : function(data){ jQuery( "select[name='period'] > option[value='']" ).prop('selected', true); - jQuery( "input:[value='custom'][name='period_choice'][type='radio']").prop('checked', true); + jQuery( "input[value='custom'][name='period_choice'][type='radio']").prop('checked', true); } }); @@ -160,12 +160,12 @@ maxDate: '-1', onSelect : function(data){ jQuery( "select[name='period'] > option[value='']" ).prop('selected', true); - jQuery( "input:[value='custom'][name='period_choice'][type='radio']").prop('checked', true); + jQuery( "input[value='custom'][name='period_choice'][type='radio']").prop('checked', true); } }); jQuery( "select[name='period']" ).click(function() { - jQuery( "input:[value='preset'][name='period_choice'][type='radio']").prop('checked', true); + jQuery( "input[value='preset'][name='period_choice'][type='radio']").prop('checked', true); }); jQuery(function () { diff --git a/www/include/reporting/dashboard/template/viewHostLog.ihtml b/www/include/reporting/dashboard/template/viewHostLog.ihtml index a5d20af15d..96e21a8645 100644 --- a/www/include/reporting/dashboard/template/viewHostLog.ihtml +++ b/www/include/reporting/dashboard/template/viewHostLog.ihtml @@ -175,7 +175,7 @@ maxDate: '-1', onSelect : function(data){ jQuery( "select[name='period'] > option[value='']" ).prop('selected', true); - jQuery( "input:[value='custom'][name='period_choice'][type='radio']").prop('checked', true); + jQuery( "input[value='custom'][name='period_choice'][type='radio']").prop('checked', true); } }); @@ -183,12 +183,12 @@ maxDate: '-1', onSelect : function(data){ jQuery( "select[name='period'] > option[value='']" ).prop('selected', true); - jQuery( "input:[value='custom'][name='period_choice'][type='radio']").prop('checked', true); + jQuery( "input[value='custom'][name='period_choice'][type='radio']").prop('checked', true); } }); jQuery( "select[name='period']" ).click(function() { - jQuery( "input:[value='preset'][name='period_choice'][type='radio']").prop('checked', true); + jQuery( "input[value='preset'][name='period_choice'][type='radio']").prop('checked', true); }); jQuery(function () { diff --git a/www/include/reporting/dashboard/template/viewServicesGroupLog.ihtml b/www/include/reporting/dashboard/template/viewServicesGroupLog.ihtml index 88867fd8ed..4d5b02f13b 100644 --- a/www/include/reporting/dashboard/template/viewServicesGroupLog.ihtml +++ b/www/include/reporting/dashboard/template/viewServicesGroupLog.ihtml @@ -165,7 +165,7 @@ maxDate: '-1', onSelect : function(data){ jQuery( "select[name='period'] > option[value='']" ).prop('selected', true); - jQuery( "input:[value='custom'][name='period_choice'][type='radio']").prop('checked', true); + jQuery( "input[value='custom'][name='period_choice'][type='radio']").prop('checked', true); } }); @@ -173,12 +173,12 @@ maxDate: '-1', onSelect : function(data){ jQuery( "select[name='period'] > option[value='']" ).prop('selected', true); - jQuery( "input:[value='custom'][name='period_choice'][type='radio']").prop('checked', true); + jQuery( "input[value='custom'][name='period_choice'][type='radio']").prop('checked', true); } }); jQuery( "select[name='period']" ).click(function() { - jQuery( "input:[value='preset'][name='period_choice'][type='radio']").prop('checked', true); + jQuery( "input[value='preset'][name='period_choice'][type='radio']").prop('checked', true); }); jQuery(function () { -- GitLab