u
This commit is contained in:
21
old/assets/script/global.js
Normal file
21
old/assets/script/global.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const o = /* @__PURE__ */ (() => {
|
||||
function a(t) {
|
||||
const s = $("#status_" + t);
|
||||
s.html('<span class="loading loading-bars loading-sm"></span><span class="ml-[3px]">Processing...</span>'), setTimeout(() => {
|
||||
s.html("");
|
||||
}, 1e3);
|
||||
}
|
||||
function n(t) {
|
||||
const s = $("#js-status-hottype-" + t);
|
||||
s.html('<span class="loading loading-bars loading-sm"></span><span class="ml-[3px]">Processing...</span>'), setTimeout(() => {
|
||||
s.html("");
|
||||
}, 1e3);
|
||||
}
|
||||
return {
|
||||
addProductToCategory: a,
|
||||
markProductAsHot: n
|
||||
};
|
||||
})();
|
||||
export {
|
||||
o as default
|
||||
};
|
||||
Reference in New Issue
Block a user