From ef33691b3b8d8dafdae2050a5504938b5201aad2 Mon Sep 17 00:00:00 2001 From: lorilee Date: Wed, 9 Jun 2010 21:42:43 -0400 Subject: [PATCH] jQuery functions for import page --- js/import.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 js/import.js diff --git a/js/import.js b/js/import.js new file mode 100644 index 0000000000..ffeb874095 --- /dev/null +++ b/js/import.js @@ -0,0 +1,20 @@ +/* vim: set expandtab sw=4 ts=4 sts=4: */ +/** + * Functions used in the import tab + * + * @version $Id$ + */ + + /** + * Toggles the hiding and showing of each plugin's options + * according to the currently selected plugin from the dropdown list + */ +$(document).ready(function() { + $("#plugins").change(function() { + $(".format_specific_options").each(function() { + $(this).hide(); + }); + var selected_plugin_name = $("#plugins option:selected").attr("value"); + $("#" + selected_plugin_name + "_options").fadeIn('slow'); + }); +}); \ No newline at end of file