@@ -81,6 +81,8 @@ function SetTextboxFromSessionOrUrlParam(sessionKey, textboxSelector) {
81
81
if ( ! value )
82
82
{
83
83
value = GetSession ( sessionKey ) ;
84
+ } else {
85
+ SetSession ( sessionKey , value ) ;
84
86
}
85
87
$ ( textboxSelector ) . val ( value ) ;
86
88
}
@@ -90,6 +92,8 @@ function SetTextBoxesFromSessionOrUrlParam(accessTokenSelector, embedUrlSelector
90
92
if ( ! accessToken )
91
93
{
92
94
accessToken = GetSession ( SessionKeys . AccessToken ) ;
95
+ } else {
96
+ SetSession ( SessionKeys . AccessToken , accessToken ) ;
93
97
}
94
98
95
99
let embedUrl = GetParameterByName ( SessionKeys . EmbedUrl ) ;
@@ -98,7 +102,7 @@ function SetTextBoxesFromSessionOrUrlParam(accessTokenSelector, embedUrlSelector
98
102
embedUrl = GetSession ( SessionKeys . EmbedUrl ) ;
99
103
} else {
100
104
let groupId = GetParameterByName ( SessionKeys . GroupId ) ;
101
- if ( groupId )
105
+ if ( groupId )
102
106
{
103
107
if ( embedUrl . indexOf ( "?" ) != - 1 )
104
108
{
@@ -107,23 +111,30 @@ function SetTextBoxesFromSessionOrUrlParam(accessTokenSelector, embedUrlSelector
107
111
embedUrl += "?groupId=" + groupId ;
108
112
}
109
113
}
114
+ SetSession ( SessionKeys . EmbedUrl , embedUrl ) ;
110
115
}
111
116
112
117
let embedId = GetParameterByName ( SessionKeys . EmbedId ) ;
113
118
if ( ! embedId )
114
119
{
115
120
embedId = GetSession ( SessionKeys . EmbedId ) ;
121
+ } else {
122
+ SetSession ( SessionKeys . EmbedId , embedId ) ;
116
123
}
117
124
118
125
let tokenType = GetParameterByName ( SessionKeys . TokenType ) ;
119
126
if ( ! tokenType )
120
127
{
121
128
tokenType = GetSession ( SessionKeys . TokenType ) ;
129
+ } else {
130
+ SetSession ( SessionKeys . TokenType , tokenType ) ;
122
131
}
123
132
124
133
let dashboardId = GetParameterByName ( SessionKeys . DashboardId ) ;
125
134
if ( ! dashboardId ) {
126
135
dashboardId = GetSession ( SessionKeys . DashboardId ) ;
136
+ } else {
137
+ SetSession ( SessionKeys . DashboardId , dashboardId ) ;
127
138
}
128
139
129
140
$ ( accessTokenSelector ) . val ( accessToken ) ;
0 commit comments