mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Working on time tracker
This commit is contained in:
parent
e1581cfc94
commit
aa31a03d7b
@ -428,16 +428,14 @@
|
|||||||
toastr.options.timeOut = 3000;
|
toastr.options.timeOut = 3000;
|
||||||
toastr.options.positionClass = 'toast-bottom-right';
|
toastr.options.positionClass = 'toast-bottom-right';
|
||||||
|
|
||||||
/*
|
|
||||||
$(window).on('beforeunload', function () {
|
$(window).on('beforeunload', function () {
|
||||||
console.log('beforeunload');
|
if (navigator.userAgent == 'Time Tracker') {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
if (model.selectedTask() && model.formChanged()) {
|
if (model.selectedTask() && model.formChanged()) {
|
||||||
console.log('changed');
|
return "{{ trans('texts.save_or_discard') }}";
|
||||||
swal("{{ trans('texts.save_or_discard') }}");
|
|
||||||
return false;
|
|
||||||
//return trans('texts.save_or_discard');
|
|
||||||
} else {
|
} else {
|
||||||
console.log('not changed');
|
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user