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:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-02-16 06:50:29 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-02-16 06:50:29 +0300
commit1d73964695f4ea292ce5a33d42544f682973e684 (patch)
tree08f268c2efc074e323c37e33d8dccbd380c287c2 /js/export.js
parenta09bba13a4c39d93f43c464d416e985ccf0b5c2f (diff)
bug #4763 Database export with more than 512 tables fails
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/export.js')
-rw-r--r--js/export.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/export.js b/js/export.js
index c34059a2d7..c468d664eb 100644
--- a/js/export.js
+++ b/js/export.js
@@ -304,8 +304,15 @@ function createAliasModal(event) {
};
dlgButtons[PMA_messages.strSaveAndClose] = function() {
$(this).dialog("close");
+ // do not fillup form submission with empty values
+ $.each($(this).find('input[type="text"]'), function (i, e) {
+ if ($(e).val().trim().length == 0) {
+ $(e).prop('disabled', true);
+ }
+ });
$('#alias_modal').parent().appendTo($('form[name="dump"]'));
};
+ $('#alias_modal input[type="text"]').prop('disabled', false);
$('#alias_modal').dialog({
width: Math.min($(window).width() - 100, 700),
modal: true,