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:
authorUmair Khan <omerjerk@gmail.com>2014-02-24 16:51:17 +0400
committerUmair Khan <omerjerk@gmail.com>2014-02-24 16:51:17 +0400
commit2ca57354430244fcc4903bbc4888a898e70fd759 (patch)
tree44b48b36afb497232288fbdd560fd2c0efd2eaac /js/export.js
parent7baa79c28cde1ce72003e85e964c26920f483ca2 (diff)
Fix empty filename during export
Signed-off-by: Umair Khan <omerjerk@gmail.com>
Diffstat (limited to 'js/export.js')
-rw-r--r--js/export.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/js/export.js b/js/export.js
index f169004727..03dd329249 100644
--- a/js/export.js
+++ b/js/export.js
@@ -132,8 +132,8 @@ function toggle_save_to_file()
$("#ul_save_asfile > li> select").prop('disabled', true);
} else {
$("#ul_save_asfile > li").fadeTo('fast', 1);
- $("#ul_save_asfile > li > input").removeProp('disabled');
- $("#ul_save_asfile > li> select").removeProp('disabled');
+ $("#ul_save_asfile > li > input").prop('disabled', false);
+ $("#ul_save_asfile > li> select").prop('disabled', false);
}
}
@@ -185,7 +185,10 @@ AJAX.registerOnload('export.js', function () {
var active_plugin = $("#plugins option:selected").val();
var force_file = $("#force_file_" + active_plugin).val();
if (force_file == "true") {
- $("#radio_dump_asfile").prop('checked', true);
+ if ($("#radio_dump_asfile").prop('checked') !== true) {
+ $("#radio_dump_asfile").prop('checked', true);
+ toggle_save_to_file();
+ }
$("#radio_view_as_text").prop('disabled', true).parent().fadeTo('fast', 0.4);
} else {
$("#radio_view_as_text").prop('disabled', false).parent().fadeTo('fast', 1);