Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Revert "Revert "fix(jQuery): fix broken input in reporting_dashboard""
Browse files Browse the repository at this point in the history
This reverts commit d176c1c.
  • Loading branch information
kduret committed May 2, 2018
1 parent d176c1c commit 6fb3650
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,20 +152,20 @@
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("#EndDate").datepicker({
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 () {
Expand Down
6 changes: 3 additions & 3 deletions www/include/reporting/dashboard/template/viewHostLog.ihtml
Original file line number Diff line number Diff line change
Expand Up @@ -175,20 +175,20 @@
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("#EndDate").datepicker({
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 () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,20 +165,20 @@
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("#EndDate").datepicker({
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 () {
Expand Down

0 comments on commit 6fb3650

Please sign in to comment.