From bb3b6fdc4d146ba7fc71de059c2284e77f26b490 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 30 Aug 2021 15:34:46 +1000 Subject: [PATCH] label.js --- InvenTree/templates/js/translated/label.js | 25 +++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/InvenTree/templates/js/translated/label.js b/InvenTree/templates/js/translated/label.js index dc9e8fa935..7b7b13d30e 100644 --- a/InvenTree/templates/js/translated/label.js +++ b/InvenTree/templates/js/translated/label.js @@ -1,6 +1,25 @@ {% load i18n %} -function printStockItemLabels(items, options={}) { +/* globals + attachSelect, + closeModal, + inventreeGet, + makeOptionsList, + modalEnable, + modalSetContent, + modalSetTitle, + modalSubmit, + openModal, + showAlertDialog, +*/ + +/* exported + printPartLabels, + printStockItemLabels, + printStockLocationLabels, +*/ + +function printStockItemLabels(items) { /** * Print stock item labels for the given stock items */ @@ -54,7 +73,7 @@ function printStockItemLabels(items, options={}) { ); } -function printStockLocationLabels(locations, options={}) { +function printStockLocationLabels(locations) { if (locations.length == 0) { showAlertDialog( @@ -105,7 +124,7 @@ function printStockLocationLabels(locations, options={}) { } -function printPartLabels(parts, options={}) { +function printPartLabels(parts) { /** * Print labels for the provided parts */