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

Commit

Permalink
fix(jQuery): fix broken input in reporting_dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
sc979 committed Apr 27, 2018
1 parent c07b236 commit bcd1f29
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 bcd1f29

Please sign in to comment.