Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
67ef7fed
Commit
67ef7fed
authored
Jul 08, 2020
by
Emmanuel René Huchim Puc
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab.geoint.mx:mario.chirinos/GeoInt_SIDT into dev
parents
d448b293
1f43fe00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
dataRetrieval.js
catalog/static/catalog/js/dataRetrieval.js
+12
-9
No files found.
catalog/static/catalog/js/dataRetrieval.js
View file @
67ef7fed
...
...
@@ -113,7 +113,7 @@ function updateCart(){
}
});
}
console
.
log
(
user
);
//
console.log(user);
if
(
user
==
"demo"
)
{
window
.
location
.
href
=
"pay"
;
}
...
...
@@ -492,7 +492,7 @@ $(document).ready(function () {
success
:
function
(
data
)
{
productListGlobe
=
[];
console
.
log
(
"DATA: "
,
data
);
//
console.log("DATA: ", data);
product_list
=
data
;
// productListGlobe = data.catalog;
...
...
@@ -585,18 +585,20 @@ $(document).ready(function () {
var
ul_element
=
document
.
getElementById
(
'product-list-globe'
);
if
(
ul_element
.
firstChild
)
{
console
.
log
(
"ULEMA: "
,
ul_element
);
//console.log('#product-to-cart-form')
showWaitingModal
()
//console.log("ULEMA: ", ul_element);
var
submit_data
=
$
(
'#product-to-cart-form'
).
serialize
();
console
.
log
(
"Submitted data:"
,
typeof
(
submit_data
));
console
.
log
(
"Submitted data:"
,
submit_data
);
//
console.log("Submitted data:", typeof(submit_data));
//
console.log("Submitted data:", submit_data);
var
submit_data_array
=
submit_data
.
split
(
"&product_selected="
);
console
.
log
(
"djdj: "
,
productListGlobe
);
//
console.log("djdj: ", productListGlobe);
deletePolygon
();
productListGlobe
.
forEach
(
function
(
data
)
{
if
(
submit_data_array
.
indexOf
(
data
.
uuid
)
>
-
1
)
{
console
.
log
(
"DATA sí esta: "
,
data
.
uuid
);
console
.
log
(
"SS: "
,
data
.
product
.
size
);
//
console.log("DATA sí esta: ", data.uuid);
//
console.log("SS: ", data.product.size);
productsToObtain
.
push
(
data
.
uuid
);
erase_product_list_globe_by_id
(
data
.
uuid
);
...
...
@@ -629,11 +631,12 @@ $(document).ready(function () {
success
:
function
()
{
cartProductList
=
[];
productUUIDListCart
.
push
.
apply
(
productUUIDListCart
,
productsToObtain
);
showWaitingModal
()
//
showWaitingModal()
updateCart
();
}
});
}
else
{
hideWaitingModal
()
mssgModal
({
title
:
"No products selected!"
,
body
:
"Select one or more products to send to your cart."
...
...
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