amendment on the data handling thingy
This commit is contained in:
		
							parent
							
								
									9a9acf2440
								
							
						
					
					
						commit
						887a7fc858
					
				
					 1 changed files with 3 additions and 5 deletions
				
			
		|  | @ -513,11 +513,10 @@ export default class windowman { | ||||||
| 													switch (ELEMENT[`type`]) { | 													switch (ELEMENT[`type`]) { | ||||||
| 														case `checkbox`: | 														case `checkbox`: | ||||||
| 															ELEMENT.checked = (DATA[`value`]); | 															ELEMENT.checked = (DATA[`value`]); | ||||||
| 
 | 															 | ||||||
| 															ELEMENT[`function`] = function() { | 															ELEMENT[`function`] = function() { | ||||||
| 																DATA[`target`] = ((ELEMENT.getAttribute(`data-result-store`).split(`,`))[0] == ``) ? [...(ELEMENT.getAttribute(`data-result-store`).split(`,`).slice(1)), ...[NAME]] : [...AREA, ...[NAME], ...(ELEMENT.getAttribute(`data-result-store`).split(`,`))]; | 																DATA[`target`] = ((ELEMENT.getAttribute(`data-result-store`).split(`,`))[0] == ``) ? [...(ELEMENT.getAttribute(`data-result-store`).split(`,`).slice(1)), ...[NAME]] : [...AREA, ...[NAME], ...(ELEMENT.getAttribute(`data-result-store`).split(`,`))]; | ||||||
| 																DATA[`value`] = ELEMENT.checked; | 																secretariat.write(DATA[`target`], ELEMENT.checked, (ELEMENT.hasAttribute(`data-store-location`)) ? parseInt(ELEMENT.getAttribute(`data-store-location`)) : -1); | ||||||
| 																secretariat.write(DATA[`target`], DATA[`value`], (ELEMENT.hasAttribute(`data-store-location`)) ? parseInt(ELEMENT.getAttribute(`data-store-location`)) : -1); |  | ||||||
| 															}; | 															}; | ||||||
| 															break; | 															break; | ||||||
| 														default: | 														default: | ||||||
|  | @ -539,8 +538,7 @@ export default class windowman { | ||||||
| 
 | 
 | ||||||
| 																ELEMENT[`function`] = function() { | 																ELEMENT[`function`] = function() { | ||||||
| 																	DATA[`target`] = ((ELEMENT.getAttribute(`data-result-store`).split(`,`))[0] == ``) ? [...(ELEMENT.getAttribute(`data-result-store`).split(`,`).slice(1)), ...[NAME]] : [...AREA, ...[NAME], ...(ELEMENT.getAttribute(`data-result-store`).split(`,`))]; | 																	DATA[`target`] = ((ELEMENT.getAttribute(`data-result-store`).split(`,`))[0] == ``) ? [...(ELEMENT.getAttribute(`data-result-store`).split(`,`).slice(1)), ...[NAME]] : [...AREA, ...[NAME], ...(ELEMENT.getAttribute(`data-result-store`).split(`,`))]; | ||||||
| 																	DATA[`value`] = ELEMENT.value.trim() | 																	secretariat.write(DATA[`target`], ELEMENT.value.trim(), (ELEMENT.hasAttribute(`data-store-location`)) ? parseInt(ELEMENT.getAttribute(`data-store-location`)) : -1); | ||||||
| 																	secretariat.write(DATA[`target`], DATA[`value`], (ELEMENT.hasAttribute(`data-store-location`)) ? parseInt(ELEMENT.getAttribute(`data-store-location`)) : -1); |  | ||||||
| 																} | 																} | ||||||
| 															} | 															} | ||||||
| 															break; | 															break; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue