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:
authorDeven Bansod <devenbansod.bits@gmail.com>2015-06-18 21:02:31 +0300
committerDeven Bansod <devenbansod.bits@gmail.com>2015-06-21 13:35:43 +0300
commita49e6f533dcd6a026e7c4a6281e469c6e446ef91 (patch)
tree7e909cfc02f399dbd947af7596fda0e6cc9c898b /js/export.js
parent899bca57cec4aefca005deff1e0baedea808a3f5 (diff)
Provide an option to export tables in a database as separate files
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
Diffstat (limited to 'js/export.js')
-rw-r--r--js/export.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/export.js b/js/export.js
index 265a5804a4..c97e72d94c 100644
--- a/js/export.js
+++ b/js/export.js
@@ -86,6 +86,19 @@ AJAX.registerOnload('export.js', function () {
$("#checkbox_sql_auto_increment").removeProp('disabled').parent().fadeTo('fast', 1);
}
});
+
+ // For separate-file exports only ZIP compression is allowed
+ $('input[type="checkbox"][name="as_separate_files"]').change(function(){
+ if (! $(this).attr('checked')) {
+ $('#compression').val('zip');
+ }
+ });
+
+ $('#compression').change(function(){
+ if ($('option:selected').val() !== 'zip') {
+ $('input[type="checkbox"][name="as_separate_files"]').attr('checked', false);
+ }
+ });
});