From 3bf24ad87b98570c3428172ab7730e93ff0b70cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 10 Nov 2016 10:01:52 +0100 Subject: [PATCH] Correctly initialize scripts on loading password change form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- js/functions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/functions.js b/js/functions.js index 66e5a1ff0a..edc55c3eb1 100644 --- a/js/functions.js +++ b/js/functions.js @@ -3173,6 +3173,10 @@ AJAX.registerOnload('functions.js', function () { return; } + if (data._scripts) { + AJAX.scriptHandler.load(data._scripts); + } + $('
') .dialog({ title: PMA_messages.strChangePassword, @@ -3189,7 +3193,6 @@ AJAX.registerOnload('functions.js', function () { .find("legend").remove().end() .find("table.noclick").unwrap().addClass("some-margin") .find("input#text_pma_pw").focus(); - displayPasswordGenerateButton(); $('#fieldset_change_password_footer').hide(); PMA_ajaxRemoveMessage($msgbox); $('#change_password_form').bind('submit', function (e) {