Fixed data/structure options toggling problem when Back link is used
This commit is contained in:
22
js/export.js
22
js/export.js
@@ -50,8 +50,8 @@ $(document).ready(function() {
|
|||||||
* Toggles the hiding and showing of plugin structure-specific and data-specific
|
* Toggles the hiding and showing of plugin structure-specific and data-specific
|
||||||
* options
|
* options
|
||||||
*/
|
*/
|
||||||
$(document).ready(function() {
|
|
||||||
function toggleStructureAndDataOpts(pluginName) {
|
function toggle_structure_data_opts(pluginName) {
|
||||||
var radioFormName = pluginName + "_structure_or_data";
|
var radioFormName = pluginName + "_structure_or_data";
|
||||||
var dataDiv = "#" + pluginName + "_data";
|
var dataDiv = "#" + pluginName + "_data";
|
||||||
var structureDiv = "#" + pluginName + "_structure";
|
var structureDiv = "#" + pluginName + "_structure";
|
||||||
@@ -68,20 +68,22 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
$("input[type='radio'][name='latex_structure_or_data']").change(function() {
|
$("input[type='radio'][name='latex_structure_or_data']").change(function() {
|
||||||
toggleStructureAndDataOpts("latex");
|
toggle_structure_data_opts("latex");
|
||||||
});
|
});
|
||||||
$("input[type='radio'][name='odt_structure_or_data']").change(function() {
|
$("input[type='radio'][name='odt_structure_or_data']").change(function() {
|
||||||
toggleStructureAndDataOpts("odt");
|
toggle_structure_data_opts("odt");
|
||||||
});
|
});
|
||||||
$("input[type='radio'][name='texytext_structure_or_data']").change(function() {
|
$("input[type='radio'][name='texytext_structure_or_data']").change(function() {
|
||||||
toggleStructureAndDataOpts("texytext");
|
toggle_structure_data_opts("texytext");
|
||||||
});
|
});
|
||||||
$("input[type='radio'][name='htmlword_structure_or_data']").change(function() {
|
$("input[type='radio'][name='htmlword_structure_or_data']").change(function() {
|
||||||
toggleStructureAndDataOpts("htmlword");
|
toggle_structure_data_opts("htmlword");
|
||||||
});
|
});
|
||||||
$("input[type='radio'][name='sql_structure_or_data']").change(function() {
|
$("input[type='radio'][name='sql_structure_or_data']").change(function() {
|
||||||
toggleStructureAndDataOpts("sql");
|
toggle_structure_data_opts("sql");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -105,7 +107,7 @@ $(document).ready(function() {
|
|||||||
/**
|
/**
|
||||||
* For SQL plugin, toggles the disabling of the "display comments" options
|
* For SQL plugin, toggles the disabling of the "display comments" options
|
||||||
*/
|
*/
|
||||||
$(document).ready(function() {
|
function toggle_sql_include_comments() {
|
||||||
$("#checkbox_sql_include_comments").change(function() {
|
$("#checkbox_sql_include_comments").change(function() {
|
||||||
if($("#checkbox_sql_include_comments:checked").length == 0) {
|
if($("#checkbox_sql_include_comments:checked").length == 0) {
|
||||||
$("#ul_include_comments > li").fadeTo('fast', 0.4);
|
$("#ul_include_comments > li").fadeTo('fast', 0.4);
|
||||||
@@ -115,7 +117,7 @@ $(document).ready(function() {
|
|||||||
$("#ul_include_comments > li > input").removeAttr('disabled');
|
$("#ul_include_comments > li > input").removeAttr('disabled');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For SQL plugin, if "CREATE TABLE options" is checked/unchecked, check/uncheck each of its sub-options
|
* For SQL plugin, if "CREATE TABLE options" is checked/unchecked, check/uncheck each of its sub-options
|
||||||
@@ -189,6 +191,8 @@ $(document).ready(function() {
|
|||||||
$(".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();
|
toggle_quick_or_custom();
|
||||||
|
toggle_structure_data_opts($("select[id='plugins']").attr("value"));
|
||||||
|
toggle_sql_include_comments();
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user