mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Cleanup edit thing
This commit is contained in:
		
							
								
								
									
										18
									
								
								public/v1/js/ff/rules/create-edit.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								public/v1/js/ff/rules/create-edit.js
									
									
									
									
										vendored
									
									
								
							| @@ -403,6 +403,15 @@ function createAutoComplete(input, URL) { | ||||
|             url: URL + urlParamSplit + 'uid=' + uid, | ||||
|             filter: function (list) { | ||||
|                 return $.map(list, function (item) { | ||||
|                     if (item.hasOwnProperty('active') && item.active === true) { | ||||
|                         return {name: item.name}; | ||||
|                     } | ||||
|                     if (item.hasOwnProperty('active') && item.active === false) { | ||||
|                         return; | ||||
|                     } | ||||
|                     if (item.hasOwnProperty('active')) { | ||||
|                         console.log(item.active); | ||||
|                     } | ||||
|                     return {name: item.name}; | ||||
|                 }); | ||||
|             } | ||||
| @@ -412,6 +421,15 @@ function createAutoComplete(input, URL) { | ||||
|             wildcard: '%QUERY', | ||||
|             filter: function (list) { | ||||
|                 return $.map(list, function (item) { | ||||
|                     if (item.hasOwnProperty('active') && item.active === true) { | ||||
|                         return {name: item.name}; | ||||
|                     } | ||||
|                     if (item.hasOwnProperty('active') && item.active === false) { | ||||
|                         return; | ||||
|                     } | ||||
|                     if (item.hasOwnProperty('active')) { | ||||
|                         console.log(item.active); | ||||
|                     } | ||||
|                     return {name: item.name}; | ||||
|                 }); | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user