Skip to content

Commit

Permalink
Correctly initialize scripts on loading password change form
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Nov 10, 2016
1 parent 2859274 commit 3bf24ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3173,6 +3173,10 @@ AJAX.registerOnload('functions.js', function () {
return;
}

if (data._scripts) {
AJAX.scriptHandler.load(data._scripts);
}

$('<div id="change_password_dialog"></div>')
.dialog({
title: PMA_messages.strChangePassword,
Expand All @@ -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) {
Expand Down

0 comments on commit 3bf24ad

Please sign in to comment.