Complete the bugfix

Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
Marc Delisle 2014-06-01 09:19:42 -04:00
parent 750f3d5f51
commit 48153344f4

View File

@ -260,14 +260,16 @@ AJAX.registerOnload('tbl_change.js', function () {
var $unsavedForm = false;
$(document).on('click', 'a', function(e){
$('a').on('click', function(e){
e.preventDefault();
if ($unsavedForm) {
var is_confirmed = confirm(PMA_messages.strConfirmNavigation);
if (! is_confirmed) {
e.preventDefault();
return false;
} else {
unsavedForm = false;
return true;
}
}
});