trigger live preview also for changes in applies-to
This commit is contained in:
		
							parent
							
								
									e5a557369b
								
							
						
					
					
						commit
						68cc033942
					
				| 
						 | 
					@ -620,7 +620,7 @@ onDOMscriptReady('/codemirror.js').then(() => {
 | 
				
			||||||
    editors.forEach(cm => cm[previewing ? 'on' : 'off']('changes', updatePreview));
 | 
					    editors.forEach(cm => cm[previewing ? 'on' : 'off']('changes', updatePreview));
 | 
				
			||||||
    const addRemove = previewing ? 'addEventListener' : 'removeEventListener';
 | 
					    const addRemove = previewing ? 'addEventListener' : 'removeEventListener';
 | 
				
			||||||
    $('#enabled')[addRemove]('change', updatePreview);
 | 
					    $('#enabled')[addRemove]('change', updatePreview);
 | 
				
			||||||
    $('#sections')[addRemove]('change', updatePreview);
 | 
					    $('#sections')[addRemove]('input', updatePreview);
 | 
				
			||||||
    if (!previewing || document.body.classList.contains('dirty')) {
 | 
					    if (!previewing || document.body.classList.contains('dirty')) {
 | 
				
			||||||
      updatePreview(null, previewing);
 | 
					      updatePreview(null, previewing);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user