Open rowanbradley opened 6 years ago
Same here, tried to customize message with
$(function() {
$('#question-form').areYouSure({
'message': 'If you leave before saving, your changes will be lost.'
});
});
But the alert box shows the default message which is This page is asking you to confirm that you want to leave - data you have entered may not be saved.
Edit: I'm on Firefox 56. I see in another issue that Chrome does not allow changing the sentence, maybe it's the same for Firefox.
I have copied your demo page lock stock and barrel onto my site. None of the examples in your demo file are displaying the custom message. The warning box always says: Do you want to leave this site? Changes that you made may not be saved.