Causes the correct radio button to be selected in the import file location form

This commit is contained in:
lorilee
2010-06-24 16:57:28 -04:00
parent 0ede5e680b
commit e6932ed398

View File

@@ -61,5 +61,18 @@ $(document).ready(function() {
$("#select_local_import_file").change(function() { $("#select_local_import_file").change(function() {
matchFile($(this).attr("value")); matchFile($(this).attr("value"));
}) });
/*
* When the "Browse the server" form is clicked or the "Select from the web server upload directory"
* form is clicked, the radio button beside it becomes selected and the other form becomes disabled.
*/
$("#input_import_file").focus(function() {
$("#radio_import_file").attr('checked', 'checked');
$("#radio_local_import_file").removeAttr('checked');
});
$("#select_local_import_file").focus(function() {
$("#radio_local_import_file").attr('checked', 'checked');
$("#radio_import_file").removeAttr('checked');
});
}); });