Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ai company
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
ai company
Commits
ed41a5ea
Commit
ed41a5ea
authored
May 20, 2026
by
Vũ Hoàng Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: expose currentProduct to window global context for external json viewer module
parent
5ac1c275
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
index.html
backend/static/manage-ultra-desc/index.html
+3
-0
No files found.
backend/static/manage-ultra-desc/index.html
View file @
ed41a5ea
...
...
@@ -804,6 +804,7 @@
// ═══ STATS & OVERVIEW ═══
async
function
showOverview
()
{
currentProduct
=
null
;
window
.
currentProduct
=
null
;
document
.
querySelectorAll
(
'.fm-item'
).
forEach
(
e
=>
e
.
classList
.
remove
(
'active'
));
// Reset right header content
...
...
@@ -1054,6 +1055,7 @@
if
(
data
.
status
!==
'success'
)
throw
new
Error
(
data
.
message
);
currentProduct
=
data
.
product
;
window
.
currentProduct
=
currentProduct
;
currentSimilarItems
=
currentProduct
.
parsed_similar_items
||
[];
currentOutfits
=
currentProduct
.
parsed_outfit_recommendations
||
[];
...
...
@@ -1110,6 +1112,7 @@
if
(
data
.
status
!==
'success'
)
throw
new
Error
(
data
.
message
);
currentProduct
=
data
.
product
;
window
.
currentProduct
=
currentProduct
;
currentSimilarItems
=
currentProduct
.
parsed_similar_items
||
[];
currentOutfits
=
currentProduct
.
parsed_outfit_recommendations
||
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment