1
0
mirror of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git synced 2025-09-09 07:30:57 +02:00

Fix select elements in safari (#1647)

This commit is contained in:
Greg Thornton
2020-12-21 05:55:30 -06:00
committed by GitHub
parent 49d1e335cc
commit 6a13b282f5
3 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ function getConfig() {
else if ($('#'+config_info[0]).is('select'))
$('#'+config_info[0]+' > option').each(function() {
if($(this).val() == config_info[1])
$(this).attr('selected','selected');
$(this).prop('selected',true);
});
else

View File

@@ -69,7 +69,7 @@ function getConfig() {
if ($('#'+config_info[0]).is('select'))
$('#'+config_info[0]+' > option').each(function() {
if($(this).val() == config_info[1])
$(this).attr('selected','selected');
$(this).prop('selected',true);
});
else
$('#'+config_info[0]).attr("value",config_info[1]);

View File

@@ -29,7 +29,7 @@ function getConfig(service) {
if ($('#'+config_info[0]).is('select'))
$('#'+config_info[0]+' > option').each(function() {
if($(this).val() == config_info[1])
$(this).attr('selected','selected');
$(this).prop('selected',true);
});
else
$('#'+config_info[0]).attr("value",config_info[1]);