mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Fix "polarity" of modal form submit button (#3142)
This commit is contained in:
		@@ -639,13 +639,13 @@ function insertConfirmButton(options) {
 | 
			
		||||
    $(options.modal).find('#modal-footer-buttons').append(html);
 | 
			
		||||
 | 
			
		||||
    // Disable the 'submit' button
 | 
			
		||||
    enableSubmitButton(options, true);
 | 
			
		||||
    enableSubmitButton(options, false);
 | 
			
		||||
 | 
			
		||||
    // Trigger event
 | 
			
		||||
    $(options.modal).find('#modal-confirm').change(function() {
 | 
			
		||||
        var enabled = this.checked;
 | 
			
		||||
 | 
			
		||||
        enableSubmitButton(options, !enabled);
 | 
			
		||||
        enableSubmitButton(options, enabled);
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user