Frontend stuff
This commit is contained in:
17
static/pages/product_select.js
Normal file
17
static/pages/product_select.js
Normal file
@@ -0,0 +1,17 @@
|
||||
console.log('product_select.js loaded');
|
||||
|
||||
// Get containers
|
||||
let mainSelectionDiv = document.getElementById('mainSelect');
|
||||
|
||||
const baseStruct = document.getElementById("baseStruct");
|
||||
|
||||
let globalData;
|
||||
|
||||
// On load
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
let data = await returnTableDataByTableName('product');
|
||||
console.info(`Found ${data.count} products`);
|
||||
const result = data.result;
|
||||
globalData = result;
|
||||
|
||||
});
|
Reference in New Issue
Block a user