diff options
author | Gemorroj <wapinet@mail.ru> | 2012-04-09 16:07:20 +0400 |
---|---|---|
committer | Gemorroj <wapinet@mail.ru> | 2012-04-09 16:07:20 +0400 |
commit | d8d25826a0e0ffdf3cf583db2fa5562a8810b639 (patch) | |
tree | 27531a4b99551fd91ec938d73264535e5aafc50a /js/export.js | |
parent | ad03783a2f56f1730bf14ee6e249d62386bf5c4f (diff) | |
parent | 3f545e316a6696d3a73a76002d752e731df0f568 (diff) |
Merge branch 'master' of https://github.com/phpmyadmin/phpmyadmin
Conflicts:
js/export.js
Diffstat (limited to 'js/export.js')
-rw-r--r-- | js/export.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/js/export.js b/js/export.js index 5c74a859ca..8801e31fd7 100644 --- a/js/export.js +++ b/js/export.js @@ -131,13 +131,14 @@ function toggle_sql_include_comments() * For SQL plugin, if "CREATE TABLE options" is checked/unchecked, check/uncheck each of its sub-options */ $(document).ready(function() { - $("#checkbox_sql_create_table_statements").change(function() { - if (!$("#checkbox_sql_create_table_statements").prop("checked")) { - $("#checkbox_sql_if_not_exists").removeProp('checked'); - $("#checkbox_sql_auto_increment").removeProp('checked'); - } else { - $("#checkbox_sql_if_not_exists").prop('checked', true); - $("#checkbox_sql_auto_increment").prop('checked', true); + var $create = $("#checkbox_sql_create_table_statements"); + var $create_options = $("#ul_create_table_statements input"); + $create.change(function() { + $create_options.prop('checked', $(this).prop("checked")); + }); + $create_options.change(function() { + if ($create_options.is(":checked")) { + $create.prop('checked', true); } }); }); |