Let the button_with_confirm give a class to its holder.
This commit is contained in:
		
							parent
							
								
									20e41ad689
								
							
						
					
					
						commit
						8a1d5d9eae
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -157,6 +157,7 @@ function init_button_with_confirm() | ||||||
|         var button = buttons[index]; |         var button = buttons[index]; | ||||||
|         var holder = document.createElement("span"); |         var holder = document.createElement("span"); | ||||||
|         holder.classList.add("confirm_holder"); |         holder.classList.add("confirm_holder"); | ||||||
|  |         holder.classList.add(button.dataset.holderClass || "confirm_holder"); | ||||||
|         button.parentElement.insertBefore(holder, button); |         button.parentElement.insertBefore(holder, button); | ||||||
|         button.parentElement.removeChild(button); |         button.parentElement.removeChild(button); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue