Skip to content

Commit

Permalink
Fixed import format not auto-selected on file pick
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetx committed Apr 7, 2012
1 parent 6ba62e1 commit 45e2dc3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ function matchFile(fname)
}
// Only toggle if the format of the file can be imported
if($("select[name='format'] option").filterByValue(fname_array[len - 1]).length == 1) {
$("#plugins option:selected").removeProp("selected");
$("select[name='format'] option").filterByValue(fname_array[len - 1]).prop('selected', true);
changePluginOpts();
}
Expand All @@ -65,7 +64,7 @@ $(document).ready(function() {
* 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() {
$("#input_import_file").bind("focus change", function() {
$("#radio_import_file").prop('checked', true);
$("#radio_local_import_file").removeProp('checked');
});
Expand Down

0 comments on commit 45e2dc3

Please sign in to comment.