diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-02-16 07:04:07 +0300 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-02-16 07:04:07 +0300 |
commit | 7bc50e5f56299da1c237014ed28290c89251e16a (patch) | |
tree | ae716c6ddfd35a1680e474acd1a28ca2ba899aa0 /js/export.js | |
parent | 54c2f395078505401dfbab6571fb156da4c35e89 (diff) | |
parent | 76c1ddaddfd1d143df9fa623b50ad3371f4949fb (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.js | 7 |
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, |