Merge pull request #13691 from codehimanshu/changepassword

fix issue #13666

Fix #13666
This commit is contained in:
Maurício Meneghini Fauth 2017-09-18 14:24:37 -03:00 committed by GitHub
commit e71b430d1e

View File

@ -3120,12 +3120,6 @@ function PMA_checkPassword($the_form)
return true;
}
/**
* Unbind all event handlers before tearing down a page
*/
AJAX.registerTeardown('functions.js', function () {
$(document).off('click', '#change_password_anchor.ajax');
});
/**
* Attach Ajax event handlers for 'Change Password' on index.php
*/
@ -3190,9 +3184,15 @@ AJAX.registerOnload('functions.js', function () {
$('#text_pma_pw').prop('required', true);
});
/**
* Unbind all event handlers before tearing down a page
*/
$(document).off('click', '#change_password_anchor.ajax');
/**
* Attach Ajax event handler on the change password anchor
*/
$(document).on('click', '#change_password_anchor.ajax', function (event) {
event.preventDefault();