Complete the bugfix
Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
parent
750f3d5f51
commit
48153344f4
@ -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;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user