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:
@@ -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
|
||||
|
@@ -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]);
|
||||
|
@@ -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]);
|
||||
|
Reference in New Issue
Block a user