mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 15:15:42 +00:00 
			
		
		
		
	linting fixes
This commit is contained in:
		@@ -244,6 +244,7 @@ def global_settings(*args, **kwargs):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    return InvenTreeSetting.allValues()
 | 
					    return InvenTreeSetting.allValues()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@register.simple_tag()
 | 
					@register.simple_tag()
 | 
				
			||||||
def progress_bar(val, max, *args, **kwargs):
 | 
					def progress_bar(val, max, *args, **kwargs):
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
@@ -259,7 +260,7 @@ def progress_bar(val, max, *args, **kwargs):
 | 
				
			|||||||
    else:
 | 
					    else:
 | 
				
			||||||
        style = ''
 | 
					        style = ''
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    percent = float(val/max) * 100
 | 
					    percent = float(val / max) * 100
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if percent > 100:
 | 
					    if percent > 100:
 | 
				
			||||||
        percent = 100
 | 
					        percent = 100
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -130,7 +130,7 @@ function enableSidebar(label, options={}) {
 | 
				
			|||||||
            var state = localStorage.getItem(`inventree-menu-state-${label}`) || 'expanded';
 | 
					            var state = localStorage.getItem(`inventree-menu-state-${label}`) || 'expanded';
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
            // We wish to "toggle" the state!
 | 
					            // We wish to "toggle" the state!
 | 
				
			||||||
            setSidebarState(label, state == "expanded" ? "collapsed" : "expanded");
 | 
					            setSidebarState(label, state == 'expanded' ? 'collapsed' : 'expanded');
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2037,8 +2037,6 @@ function constructHiddenInput(name, parameters) {
 | 
				
			|||||||
// Construct a "checkbox" input
 | 
					// Construct a "checkbox" input
 | 
				
			||||||
function constructCheckboxInput(name, parameters) {
 | 
					function constructCheckboxInput(name, parameters) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var todo = "refactor this with the new bootstrap slide-toggle thingy";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return constructInputOptions(
 | 
					    return constructInputOptions(
 | 
				
			||||||
        name,
 | 
					        name,
 | 
				
			||||||
        'form-check-input',
 | 
					        'form-check-input',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user