mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	JS linting fixes
This commit is contained in:
		| @@ -867,7 +867,7 @@ function loadBuildOutputTable(build_info, options={}) { | |||||||
|     // List of "tracked bom items" required for this build order |     // List of "tracked bom items" required for this build order | ||||||
|     var bom_items = null; |     var bom_items = null; | ||||||
|  |  | ||||||
|      // Request list of BOM data for this build order |     // Request list of BOM data for this build order | ||||||
|     inventreeGet( |     inventreeGet( | ||||||
|         '{% url "api-bom-list" %}', |         '{% url "api-bom-list" %}', | ||||||
|         { |         { | ||||||
| @@ -962,7 +962,7 @@ function loadBuildOutputTable(build_info, options={}) { | |||||||
|  |  | ||||||
|                             var output_progress_bar = $(`#output-progress-${row.pk}`); |                             var output_progress_bar = $(`#output-progress-${row.pk}`); | ||||||
|  |  | ||||||
|                             if  (output_progress_bar.exists()) { |                             if (output_progress_bar.exists()) { | ||||||
|                                 output_progress_bar.html( |                                 output_progress_bar.html( | ||||||
|                                     makeProgressBar( |                                     makeProgressBar( | ||||||
|                                         n_completed_lines, |                                         n_completed_lines, | ||||||
| @@ -977,7 +977,7 @@ function loadBuildOutputTable(build_info, options={}) { | |||||||
|                     }); |                     }); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         ) |         ); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     var part_tests = null; |     var part_tests = null; | ||||||
| @@ -1283,14 +1283,14 @@ function loadBuildOutputTable(build_info, options={}) { | |||||||
|                     $('#build-stock-table').bootstrapTable('refresh'); |                     $('#build-stock-table').bootstrapTable('refresh'); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         ) |         ); | ||||||
|     }); |     }); | ||||||
|  |  | ||||||
|     // Print stock item labels |     // Print stock item labels | ||||||
|     $('#incomplete-output-print-label').click(function() { |     $('#incomplete-output-print-label').click(function() { | ||||||
|         var outputs = $(table).bootstrapTable('getSelections'); |         var outputs = $(table).bootstrapTable('getSelections'); | ||||||
|  |  | ||||||
|         if  (outputs.length == 0) { |         if (outputs.length == 0) { | ||||||
|             outputs = $(table).bootstrapTable('getData'); |             outputs = $(table).bootstrapTable('getData'); | ||||||
|         } |         } | ||||||
|  |  | ||||||
| @@ -1375,10 +1375,6 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) { | |||||||
|  |  | ||||||
|     setupFilterList('builditems', $(table), options.filterTarget); |     setupFilterList('builditems', $(table), options.filterTarget); | ||||||
|  |  | ||||||
|     // If an "output" is specified, then only "trackable" parts are allocated |  | ||||||
|     // Otherwise, only "untrackable" parts are allowed |  | ||||||
|     var trackable = ! !output; |  | ||||||
|  |  | ||||||
|     var allocated_items = output == null ? null : output.allocations; |     var allocated_items = output == null ? null : output.allocations; | ||||||
|  |  | ||||||
|     function redrawAllocationData() { |     function redrawAllocationData() { | ||||||
| @@ -1447,11 +1443,6 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) { | |||||||
|         redrawAllocationData(); |         redrawAllocationData(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     function reloadTable() { |  | ||||||
|         // Reload the entire build allocation table |  | ||||||
|         $(table).bootstrapTable('refresh'); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     function requiredQuantity(row) { |     function requiredQuantity(row) { | ||||||
|         // Return the requied quantity for a given row |         // Return the requied quantity for a given row | ||||||
|  |  | ||||||
| @@ -1812,7 +1803,7 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) { | |||||||
|                 sortable: true, |                 sortable: true, | ||||||
|                 formatter: function(value, row) { |                 formatter: function(value, row) { | ||||||
|                     var allocated = allocatedQuantity(row); |                     var allocated = allocatedQuantity(row); | ||||||
|                     var required = requiredQuantity(row) |                     var required = requiredQuantity(row); | ||||||
|                     return makeProgressBar(allocated, required); |                     return makeProgressBar(allocated, required); | ||||||
|                 }, |                 }, | ||||||
|                 sorter: function(valA, valB, rowA, rowB) { |                 sorter: function(valA, valB, rowA, rowB) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user