Added option in config.inc.php to set the default export method to quick, custom, or custom-no-form

This commit is contained in:
lorilee
2010-07-13 18:19:54 -07:00
parent 38434e77fd
commit 7826652898

View File

@@ -152,8 +152,7 @@ $(document).ready(function() {
/** /**
* Toggles display of options when quick and custom export are selected * Toggles display of options when quick and custom export are selected
*/ */
$(document).ready(function() { function toggle_quick_or_custom() {
$("input[type='radio'][name='quick_or_custom']").change(function() {
if($("$(this):checked").attr("value") == "custom") { if($("$(this):checked").attr("value") == "custom") {
$("#databases_and_tables").show(); $("#databases_and_tables").show();
$("#rows").show(); $("#rows").show();
@@ -169,6 +168,11 @@ $(document).ready(function() {
$("#format_specific_opts").hide(); $("#format_specific_opts").hide();
$("#output_quick_export").show(); $("#output_quick_export").show();
} }
}
$(document).ready(function() {
$("input[type='radio'][name='quick_or_custom']").change(function() {
toggle_quick_or_custom();
}); });
}); });
@@ -177,16 +181,14 @@ $(document).ready(function() {
* Javascript-disabled browsers * Javascript-disabled browsers
*/ */
$(document).ready(function() { $(document).ready(function() {
if($("input[type='hidden'][name='export_method']").attr("value") != "custom-no-form") {
$("#quick_or_custom").show(); $("#quick_or_custom").show();
$("#databases_and_tables").hide(); }
$("#rows").hide();
$("#output_quick_export").show();
$("#output").hide();
$("#format_specific_opts").hide();
$("#scroll_to_options_msg").hide(); $("#scroll_to_options_msg").hide();
$(".format_specific_options").hide(); $(".format_specific_options").hide();
$(".format_specific_options").css({ "border": 0, "margin": 0, "padding": 0}); $(".format_specific_options").css({ "border": 0, "margin": 0, "padding": 0});
$(".format_specific_options h3").remove(); $(".format_specific_options h3").remove();
toggle_quick_or_custom();
}); });
/** /**
@@ -194,7 +196,6 @@ $(document).ready(function() {
*/ */
$(document).ready(function() { $(document).ready(function() {
$("input[type='radio'][name='allrows']").change(function() { $("input[type='radio'][name='allrows']").change(function() {
// alert(("$(this):checked").attr("name"));
if($("input[type='radio'][name='allrows']:checked").attr("value") == "1") { if($("input[type='radio'][name='allrows']:checked").attr("value") == "1") {
$("label[for='limit_to']").fadeTo('fast', 0.4); $("label[for='limit_to']").fadeTo('fast', 0.4);
$("label[for='limit_from']").fadeTo('fast', 0.4); $("label[for='limit_from']").fadeTo('fast', 0.4);