v0.6.2d - Added are you sure you want to leave alert if you have unsaved data on a pages
This commit is contained in:
@@ -29,3 +29,15 @@
|
||||
<input type="submit" class="btn btn-dark text-white" value="Opret">
|
||||
</form>
|
||||
@endsection
|
||||
@section("scripts")
|
||||
<script>
|
||||
$(function() {
|
||||
$('form').areYouSure(
|
||||
{
|
||||
message: 'It looks like you have been editing something. '
|
||||
+ 'If you leave before saving, your changes will be lost.'
|
||||
}
|
||||
);
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@@ -28,3 +28,15 @@
|
||||
<input type="submit" class="btn btn-dark text-white" value="Rediger">
|
||||
</form>
|
||||
@endsection
|
||||
@section("scripts")
|
||||
<script>
|
||||
$(function() {
|
||||
$('form').areYouSure(
|
||||
{
|
||||
message: 'It looks like you have been editing something. '
|
||||
+ 'If you leave before saving, your changes will be lost.'
|
||||
}
|
||||
);
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user