mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 00:07:35 -05:00 
			
		
		
		
	Remember task type in local storage
This commit is contained in:
		
							parent
							
								
									6aeaeaf272
								
							
						
					
					
						commit
						b6fe07c07a
					
				@ -621,11 +621,13 @@
 | 
				
			|||||||
           $clientSelect.trigger('change');
 | 
					           $clientSelect.trigger('change');
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        var taskType = localStorage.getItem('last:task_type');
 | 
					        @if (!$task)
 | 
				
			||||||
        if (taskType) {
 | 
					            var taskType = localStorage.getItem('last:task_type');
 | 
				
			||||||
            $('input[name=task_type][value='+taskType+']').prop('checked', true);
 | 
					            if (taskType) {
 | 
				
			||||||
            onTaskTypeChange();
 | 
					                $('input[name=task_type][value='+taskType+']').prop('checked', true);
 | 
				
			||||||
        }
 | 
					                onTaskTypeChange();
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        @endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        @if (!$task && !$clientPublicId)
 | 
					        @if (!$task && !$clientPublicId)
 | 
				
			||||||
            $('.client-select input.form-control').focus();
 | 
					            $('.client-select input.form-control').focus();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user