diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-06-22 06:06:46 +0300 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-06-22 06:06:46 +0300 |
commit | f889561c59247deb91a978710005bcf672a2268e (patch) | |
tree | e78f81da47e9e3f9742d5f789a34ae57881dca68 /js/tbl_operations.js | |
parent | b31b92032a45e7fb503b0720ec3e44c10405e8a2 (diff) |
Get default_fk_check_value on demand rather than checking the value in every script
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/tbl_operations.js')
-rw-r--r-- | js/tbl_operations.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tbl_operations.js b/js/tbl_operations.js index 7f14b62bd3..a47e8fc2a6 100644 --- a/js/tbl_operations.js +++ b/js/tbl_operations.js @@ -203,7 +203,7 @@ AJAX.registerOnload('tbl_operations.js', function () { question += PMA_sprintf( PMA_messages.strDoYouReally, 'DROP TABLE ' + escapeHtml(PMA_commonParams.get('table')) - ) + getForeignKeyCheckbox(); + ) + getForeignKeyCheckboxLoader(); $(this).PMA_confirm(question, $(this).attr('href'), function (url) { @@ -227,7 +227,7 @@ AJAX.registerOnload('tbl_operations.js', function () { PMA_ajaxShowMessage(data.error, false); } }); // end $.get() - }); // end $.PMA_confirm() + }, loadForeignKeyCheckbox); // end $.PMA_confirm() }); //end of Drop Table Ajax action $(document).on('click', "#drop_view_anchor.ajax", function (event) { @@ -272,7 +272,7 @@ AJAX.registerOnload('tbl_operations.js', function () { question += PMA_sprintf( PMA_messages.strDoYouReally, 'TRUNCATE ' + escapeHtml(PMA_commonParams.get('table')) - ) + getForeignKeyCheckbox(); + ) + getForeignKeyCheckboxLoader(); $(this).PMA_confirm(question, $(this).attr('href'), function (url) { PMA_ajaxShowMessage(PMA_messages.strProcessingRequest); @@ -294,7 +294,7 @@ AJAX.registerOnload('tbl_operations.js', function () { PMA_ajaxShowMessage(data.error, false); } }); // end $.get() - }); // end $.PMA_confirm() + }, loadForeignKeyCheckbox); // end $.PMA_confirm() }); //end of Truncate Table Ajax action }); //end $(document).ready for 'Table operations' |