diff options
author | Michal Čihař <mcihar@suse.cz> | 2013-04-15 17:12:49 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2013-04-15 17:13:14 +0400 |
commit | a1b6f206b2cfe78e3819ef1bf1da0c78f847a2ca (patch) | |
tree | edd5812cb8dd2abf75a7548e01f548c6ac8693ed /js/import.js | |
parent | b9aa5280b1c1dff488a517263057a33c3c4192d8 (diff) |
Various spacing and identation fixes
Diffstat (limited to 'js/import.js')
-rw-r--r-- | js/import.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/js/import.js b/js/import.js index 79413b727f..b78d97bb38 100644 --- a/js/import.js +++ b/js/import.js @@ -11,7 +11,7 @@ */ function changePluginOpts() { - $("#format_specific_opts div.format_specific_options").each(function() { + $("#format_specific_opts div.format_specific_options").each(function () { $(this).hide(); }); var selected_plugin_name = $("#plugins option:selected").val(); @@ -47,7 +47,7 @@ function matchFile(fname) /** * Unbind all event handlers before tearing down a page */ -AJAX.registerTeardown('import.js', function() { +AJAX.registerTeardown('import.js', function () { $("#plugins").unbind('change'); $("#input_import_file").unbind('change'); $("#select_local_import_file").unbind('change'); @@ -55,20 +55,20 @@ AJAX.registerTeardown('import.js', function() { $("#select_local_import_file").unbind('focus'); }); -AJAX.registerOnload('import.js', function() { +AJAX.registerOnload('import.js', function () { // Initially display the options for the selected plugin changePluginOpts(); // Whenever the selected plugin changes, change the options displayed - $("#plugins").change(function() { + $("#plugins").change(function () { changePluginOpts(); }); - $("#input_import_file").change(function() { + $("#input_import_file").change(function () { matchFile($(this).val()); }); - $("#select_local_import_file").change(function() { + $("#select_local_import_file").change(function () { matchFile($(this).val()); }); @@ -76,13 +76,13 @@ AJAX.registerOnload('import.js', 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").bind("focus change", function() { - $("#radio_import_file").prop('checked', true); - $("#radio_local_import_file").prop('checked', false); + $("#input_import_file").bind("focus change", function () { + $("#radio_import_file").prop('checked', true); + $("#radio_local_import_file").prop('checked', false); }); - $("#select_local_import_file").focus(function() { - $("#radio_local_import_file").prop('checked', true); - $("#radio_import_file").prop('checked', false); + $("#select_local_import_file").focus(function () { + $("#radio_local_import_file").prop('checked', true); + $("#radio_import_file").prop('checked', false); }); /** |