-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhlcreate.html
More file actions
53 lines (47 loc) · 1.64 KB
/
hlcreate.html
File metadata and controls
53 lines (47 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="js/tpxHighLevelBasketAPI.js"></script>
<link rel="stylesheet" href="css/basicModal.min.css">
<script src="js/basicModal.min.js"></script>
<script>
// The only reason to override this function is to fix an issue
// that creates unwanted dummy projects each time the user clicks the back button
// in the designer instead of getting back to the previous page.
function tpxHighLevelCreateProjectView(pJsonResponseObject) {
if ((pJsonResponseObject.result == 0) || (pJsonResponseObject.result == -2)) {
onlineDesignURL = pJsonResponseObject.designurl;
if (pJsonResponseObject.result == -2) {
onlineDesignURL = onlineDesignURL;
}
// Fix: Instead of "window.location = onlineDesignURL;" we use:
window.location.replace(onlineDesignURL);
}
else {
var resultAlert = {
body: '<p>' + pJsonResponseObject.resultmessage + '</p>',
buttons: {
action: {
title: tpxGetLocaleString(kStr_ButtonOK),
fn: function () {
if ((pJsonResponseObject.redirecturl) && (pJsonResponseObject.redirecturl != '')) {
document.location = pJsonResponseObject.redirecturl;
}
else {
basicModal.close();
}
}
}
}
}
basicModal.show(resultAlert);
}
return false;
}
</script>
</head>
<body onLoad="tpxHighLevelBasketInitialise()">
</body>
</html>