From 89c9de9f09ae4cd815c7b8a4065f6cf402a5709d Mon Sep 17 00:00:00 2001 From: lorilee Date: Wed, 11 Aug 2010 13:39:35 -0700 Subject: [PATCH] If structure is not being exported, the comment options for structure should not be enabled --- js/export.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/js/export.js b/js/export.js index 603d795a9..8f5cba563 100644 --- a/js/export.js +++ b/js/export.js @@ -113,8 +113,14 @@ function toggle_sql_include_comments() { $("#ul_include_comments > li").fadeTo('fast', 0.4); $("#ul_include_comments > li > input").attr('disabled', 'disabled'); } else { - $("#ul_include_comments > li").fadeTo('fast', 1); - $("#ul_include_comments > li > input").removeAttr('disabled'); + // 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 { + $("#ul_include_comments > li").fadeTo('fast', 1); + $("#ul_include_comments > li > input").removeAttr('disabled'); + } } }); }