From d176c1ca9dd687759c8b4bd908e5bc946b05fa43 Mon Sep 17 00:00:00 2001
From: Stephane Chapron <schapron@centreon.com>
Date: Fri, 27 Apr 2018 15:32:37 +0200
Subject: [PATCH] Revert "fix(jQuery): fix broken input in reporting_dashboard"

This reverts commit bcd1f290a8ea4f4451474602b28e6a621b87484f.
---
 .../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 558a83c0ab..8d7911b5a4 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 96e21a8645..a5d20af15d 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 4d5b02f13b..88867fd8ed 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