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