Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGemorroj <wapinet@mail.ru>2012-04-09 16:07:20 +0400
committerGemorroj <wapinet@mail.ru>2012-04-09 16:07:20 +0400
commitd8d25826a0e0ffdf3cf583db2fa5562a8810b639 (patch)
tree27531a4b99551fd91ec938d73264535e5aafc50a /js/export.js
parentad03783a2f56f1730bf14ee6e249d62386bf5c4f (diff)
parent3f545e316a6696d3a73a76002d752e731df0f568 (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.js15
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);
}
});
});