Repository navigation
Expand file tree
/
Copy pathreport.js
More file actions
56 lines (45 loc) · 2 KB
/
Copy pathreport.js
File metadata and controls
56 lines (45 loc) · 2 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
54
55
56
const active_class = 'active';
const active_div = 'active-step';
function OpenAuthStep() {
$("#steps-auth a").addClass(active_class);
$('#steps-embed a').removeClass(active_class);
$('#steps-interact a').removeClass(active_class);
$("#steps-auth .step-div").addClass(active_div);
$('#steps-embed .step-div').removeClass(active_div);
$('#steps-interact .step-div').removeClass(active_div);
// Hide Embed view in authorization step.
$("#authorize-step-wrapper").show();
$("#embed-and-interact-steps-wrapper").hide();
}
function OpenEmbedStep() {
$("#steps-auth a").removeClass(active_class);
$('#steps-embed a').addClass(active_class);
$('#steps-interact a').removeClass(active_class);
$("#steps-auth .step-div").removeClass(active_div);
$('#steps-embed .step-div').addClass(active_div);
$('#steps-interact .step-div').removeClass(active_div);
// Hide Embed view in authorization step.
$("#authorize-step-wrapper").hide();
$("#embed-and-interact-steps-wrapper").show();
$("#settings").load("settings_embed.html", function() {
SetTextBoxesFromSessionOrUrlParam("#txtAccessToken", "#txtReportEmbed", "#txtEmbedReportId");
LoadCodeArea("#embedCodeDiv", _Embed_BasicEmbed);
});
}
function OpenInteractStep() {
$("#steps-auth a").removeClass(active_class);
$('#steps-embed a').removeClass(active_class);
$('#steps-interact a').addClass(active_class);
$("#steps-auth .step-div").removeClass(active_div);
$('#steps-embed .step-div').removeClass(active_div);
$('#steps-interact .step-div').addClass(active_div);
// Hide Embed view in authorization step.
$("#authorize-step-wrapper").hide();
$("#embed-and-interact-steps-wrapper").show();
$("#settings").load("settings_interact.html", function() {
SetToggleHandler("report-operations-div");
SetToggleHandler("page-operations-div");
SetToggleHandler("events-operations-div");
LoadCodeArea("#embedCodeDiv", _Report_GetId);
});
}