If structure is not being exported, the comment options for structure should not be enabled
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user