If structure is not being exported, the comment options for structure should not be enabled

This commit is contained in:
lorilee
2010-08-11 13:39:35 -07:00
parent 4b4374d8b3
commit 89c9de9f09

View File

@@ -112,10 +112,16 @@ function toggle_sql_include_comments() {
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);
$("#ul_include_comments > li > input").attr('disabled', 'disabled'); $("#ul_include_comments > li > input").attr('disabled', 'disabled');
} else {
// If structure is not being exported, the comment options for structure should not be enabled
if($("#radio_sql_structure_or_data_data:checked").length == 1) {
$("#text_sql_header_comment").parent("li").fadeTo('fast', 1);
$("#text_sql_header_comment").removeAttr('disabled');
} else { } else {
$("#ul_include_comments > li").fadeTo('fast', 1); $("#ul_include_comments > li").fadeTo('fast', 1);
$("#ul_include_comments > li > input").removeAttr('disabled'); $("#ul_include_comments > li > input").removeAttr('disabled');
} }
}
}); });
} }