|
@@ -1,15 +1,16 @@
|
|
|
$(document).ready(function(){
|
|
$(document).ready(function(){
|
|
|
$("select[name='homeid_ip_port']").change(function(e){
|
|
$("select[name='homeid_ip_port']").change(function(e){
|
|
|
- checkSteamSupportAutoUpdate();
|
|
|
|
|
|
|
+ checkSteamSupportAutoUpdate($(this));
|
|
|
});
|
|
});
|
|
|
- checkSteamSupportAutoUpdate();
|
|
|
|
|
|
|
+
|
|
|
|
|
+ $("select[name='homeid_ip_port']").trigger("change");
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-function checkSteamSupportAutoUpdate(){
|
|
|
|
|
|
|
+function checkSteamSupportAutoUpdate(elem){
|
|
|
var curOpt = $("select[name='homeid_ip_port'] option:selected");
|
|
var curOpt = $("select[name='homeid_ip_port'] option:selected");
|
|
|
if(curOpt.attr('steam')){
|
|
if(curOpt.attr('steam')){
|
|
|
- $("option[value='steam_auto_update']", $("select[name='action']")).removeAttr('disabled');
|
|
|
|
|
|
|
+ $("option[value='steam_auto_update']", $(elem)).removeAttr('disabled');
|
|
|
}else{
|
|
}else{
|
|
|
- $("option[value='steam_auto_update']", $("select[name='action']")).attr('disabled','disabled');
|
|
|
|
|
|
|
+ $("option[value='steam_auto_update']", $(elem)).attr('disabled','disabled');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|