mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-16 01:36:29 +00:00
Fix JS linting workflow (#4915)
* Add bad .js code - Call function which has not been defined - Should throw JS lint error * update eslint - Move to newer version of eslint - Change default rules * Fixes for tables.js * Fixes for table_filters.js * Fixes for stock.js * Fix for sales_order.js and search.js * Fix return_order.js * Fixes for purchase_order.js * More updates - part.js - plugin.js - pricing.js * Updates - order.js * Even morerer updates - label.js - modals.js - model_renderers.js - news.js - notification.js * More, MORE! - build.js - company.js - charts.js - filters.js - forms.js - helpers.js * Final? - api.js - attachment.js - barcode.js - bom.js * Fix 'useless-escape' * Disable no-useless-escape rule
This commit is contained in:
@@ -3,25 +3,61 @@
|
||||
{% load status_codes %}
|
||||
|
||||
/* globals
|
||||
addCachedAlert,
|
||||
baseCurrency,
|
||||
calculateTotalPrice,
|
||||
clearFormInput,
|
||||
constructField,
|
||||
constructForm,
|
||||
constructFormBody,
|
||||
convertCurrency,
|
||||
disableFormInput,
|
||||
enableFormInput,
|
||||
formatCurrency,
|
||||
formatDecimal,
|
||||
formatPriceRange,
|
||||
getCurrencyConversionRates,
|
||||
getFormFieldValue,
|
||||
getTableData,
|
||||
global_settings,
|
||||
handleFormErrors,
|
||||
handleFormSuccess,
|
||||
imageHoverIcon,
|
||||
initializeRelatedField,
|
||||
inventreeDelete,
|
||||
inventreeGet,
|
||||
inventreeLoad,
|
||||
inventreePut,
|
||||
inventreeSave,
|
||||
launchModalForm,
|
||||
linkButtonsToSelection,
|
||||
loadTableFilters,
|
||||
makeDeleteButton,
|
||||
makeEditButton,
|
||||
makeIconBadge,
|
||||
makeIconButton,
|
||||
makeRemoveButton,
|
||||
orderParts,
|
||||
partDetail,
|
||||
renderClipboard,
|
||||
renderDate,
|
||||
renderLink,
|
||||
scanItemsIntoLocation,
|
||||
showAlertDialog,
|
||||
setFormInputPlaceholder,
|
||||
setupFilterList,
|
||||
shortenString,
|
||||
showAlertDialog,
|
||||
showAlertOrCache,
|
||||
showMessage,
|
||||
showModalSpinner,
|
||||
showApiError,
|
||||
stockCodes,
|
||||
stockStatusDisplay,
|
||||
thumbnailImage,
|
||||
updateFieldValue,
|
||||
withTitle,
|
||||
wrapButtons,
|
||||
yesNoLabel,
|
||||
*/
|
||||
|
||||
/* exported
|
||||
@@ -792,7 +828,7 @@ function mergeStockItems(items, options={}) {
|
||||
}
|
||||
|
||||
var part = item.part_detail;
|
||||
var location = locationDetail(item, false);
|
||||
let location_detail = locationDetail(item, false);
|
||||
|
||||
var thumbnail = thumbnailImage(part.thumbnail || part.image);
|
||||
|
||||
@@ -824,7 +860,7 @@ function mergeStockItems(items, options={}) {
|
||||
<div id='errors-items_item_${pk}'></div>
|
||||
</div>
|
||||
</td>
|
||||
<td id='location_${pk}'>${location}</td>
|
||||
<td id='location_${pk}'>${location_detail}</td>
|
||||
<td id='buttons_${pk}'>${buttons}</td>
|
||||
</tr>
|
||||
`;
|
||||
|
Reference in New Issue
Block a user