mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	inventreeDelete was not returning the promise
This commit is contained in:
		| @@ -371,7 +371,7 @@ | ||||
|                         requests.push(inventreeDelete(url)); | ||||
|                     }); | ||||
|              | ||||
|                     $.when.apply($, requests).then(function() { | ||||
|                     $.when.apply($, requests).done(function() { | ||||
|                         $('#supplier-part-table').bootstrapTable('refresh'); | ||||
|                     }); | ||||
|                 } | ||||
|   | ||||
| @@ -207,7 +207,7 @@ $("#supplier-part-delete").click(function() { | ||||
|                     requests.push(inventreeDelete(url)); | ||||
|                 }); | ||||
|          | ||||
|                 $.when.apply($, requests).then(function() { | ||||
|                 $.when.apply($, requests).done(function() { | ||||
|                     reloadSupplierPartTable(); | ||||
|                 }); | ||||
|             } | ||||
| @@ -247,7 +247,7 @@ $("#multi-parameter-delete").click(function() { | ||||
|                     requests.push(inventreeDelete(url)); | ||||
|                 }); | ||||
|  | ||||
|                 $.when.apply($, requests).then(function() { | ||||
|                 $.when.apply($, requests).done(function() { | ||||
|                     $('#parameter-table').bootstrapTable('refresh'); | ||||
|                 }); | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user