think of a shorter name
This commit is contained in:
		
							parent
							
								
									db97f4ddbc
								
							
						
					
					
						commit
						912a36a2f6
					
				
					 1 changed files with 9 additions and 9 deletions
				
			
		|  | @ -333,7 +333,7 @@ export default class windowman { | ||||||
| 				// Get the storage data.
 | 				// Get the storage data.
 | ||||||
| 				let storage_data = await secretariat.read(); | 				let storage_data = await secretariat.read(); | ||||||
| 
 | 
 | ||||||
| 				async function update_interface() { | 				async function enable() { | ||||||
| 					let input_elements = document.querySelectorAll("[data-enable]"); | 					let input_elements = document.querySelectorAll("[data-enable]"); | ||||||
| 
 | 
 | ||||||
| 					if (input_elements) { | 					if (input_elements) { | ||||||
|  | @ -341,12 +341,12 @@ export default class windowman { | ||||||
| 							if (input_element.getAttribute("data-enable")) { | 							if (input_element.getAttribute("data-enable")) { | ||||||
| 								(async () => { | 								(async () => { | ||||||
| 									input_element.disabled = | 									input_element.disabled = | ||||||
| 										(await secretariat.read( | 										!(((await secretariat.read(input_element.getAttribute("data-enable"))) != null) | ||||||
| 											input_element.getAttribute("data-enable"), | 											? ((typeof (await secretariat.read(input_element.getAttribute("data-enable")))).includes(`Object`) | ||||||
| 										)) == null || | 												? ((await secretariat.read(input_element.getAttribute("data-enable"))).length > 0) | ||||||
| 										(await secretariat.read( | 												: !!(await secretariat.read(input_element.getAttribute("data-enable"))) | ||||||
| 											input_element.getAttribute("data-enable"), | 											) | ||||||
| 										)); | 											: false); | ||||||
| 								})(); | 								})(); | ||||||
| 							} | 							} | ||||||
| 						}); | 						}); | ||||||
|  | @ -355,10 +355,10 @@ export default class windowman { | ||||||
| 
 | 
 | ||||||
| 				// Update the input elements.
 | 				// Update the input elements.
 | ||||||
| 				secretariat.observe((what) => { | 				secretariat.observe((what) => { | ||||||
| 					update_interface(); | 					enable(); | ||||||
| 				}); | 				}); | ||||||
| 
 | 
 | ||||||
| 				update_interface(); | 				enable(); | ||||||
| 			} | 			} | ||||||
| 
 | 
 | ||||||
| 			storage(); | 			storage(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue