Support for no javascript

This commit is contained in:
lorilee
2010-07-05 16:14:41 -07:00
parent cd7bf9744d
commit 1b300eed99

View File

@@ -5,7 +5,6 @@
* @version $Id$ * @version $Id$
*/ */
$(document).ready(function() {
/** /**
* Toggles the hiding and showing of each plugin's options * Toggles the hiding and showing of each plugin's options
@@ -50,7 +49,11 @@ $(document).ready(function() {
changePluginOpts(); changePluginOpts();
} }
} }
$(document).ready(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(); changePluginOpts();
}); });
@@ -75,4 +78,12 @@ $(document).ready(function() {
$("#radio_local_import_file").attr('checked', 'checked'); $("#radio_local_import_file").attr('checked', 'checked');
$("#radio_import_file").removeAttr('checked'); $("#radio_import_file").removeAttr('checked');
}); });
/**
* Set up the interface for Javascript-enabled browsers since the default is for
* Javascript-disabled browsers
*/
$("#scroll_to_options_msg").hide();
$(".format_specific_options").css({ "border": 0, "margin": 0, "padding": 0 });
$(".format_specific_options h3").remove();
}); });