mirror of
				https://github.com/Alamantus/Lexiconga.git
				synced 2025-11-04 10:17:01 +01:00 
			
		
		
		
	Render correct label for IPA table modal
This commit is contained in:
		
							parent
							
								
									ac8d88f082
								
							
						
					
					
						commit
						d682b0060e
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -278,7 +278,7 @@ export function renderEditForm(wordId = false) {
 | 
			
		|||
 | 
			
		||||
export function renderIPATable(ipaTableButton) {
 | 
			
		||||
  ipaTableButton = typeof ipaTableButton.target === 'undefined' ? ipaTableButton : ipaTableButton.target;
 | 
			
		||||
  // const label = ipaTableButton.parentElement.innerText.replace(/(\*|Maximize)/g, '').trim();
 | 
			
		||||
  const label = ipaTableButton.parentElement.innerText.replace(/(Field Help|IPA Chart)/g, '').trim();
 | 
			
		||||
  const textBox = ipaTableButton.parentElement.querySelector('input');
 | 
			
		||||
  import('./KeyboardFire/phondue/ipa-table.html').then(html => {
 | 
			
		||||
    const modalElement = document.createElement('section');
 | 
			
		||||
| 
						 | 
				
			
			@ -286,7 +286,7 @@ export function renderIPATable(ipaTableButton) {
 | 
			
		|||
    modalElement.innerHTML = `<div class="modal-background"></div>
 | 
			
		||||
    <div class="modal-content">
 | 
			
		||||
      <a class="close-button">×︎</a>
 | 
			
		||||
      <header><label>Pronunciation <input value="${textBox.value}" class="ipa-field"></label></header>
 | 
			
		||||
      <header><label>${label} <input value="${textBox.value}" class="ipa-field"></label></header>
 | 
			
		||||
      <section>
 | 
			
		||||
        ${html}
 | 
			
		||||
      </section>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue