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 07:04:07 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-02-16 07:04:07 +0300
commit7bc50e5f56299da1c237014ed28290c89251e16a (patch)
treeae716c6ddfd35a1680e474acd1a28ca2ba899aa0 /js/export.js
parent54c2f395078505401dfbab6571fb156da4c35e89 (diff)
parent76c1ddaddfd1d143df9fa623b50ad3371f4949fb (diff)
Merge branch 'QA_4_3'
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 787e3c3482..90e6f445f6 100644
--- a/js/export.js
+++ b/js/export.js
@@ -310,8 +310,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,