@@ -81,6 +81,8 @@ function SetTextboxFromSessionOrUrlParam(sessionKey, textboxSelector) {
8181 if ( ! value )
8282 {
8383 value = GetSession ( sessionKey ) ;
84+ } else {
85+ SetSession ( sessionKey , value ) ;
8486 }
8587 $ ( textboxSelector ) . val ( value ) ;
8688}
@@ -90,6 +92,8 @@ function SetTextBoxesFromSessionOrUrlParam(accessTokenSelector, embedUrlSelector
9092 if ( ! accessToken )
9193 {
9294 accessToken = GetSession ( SessionKeys . AccessToken ) ;
95+ } else {
96+ SetSession ( SessionKeys . AccessToken , accessToken ) ;
9397 }
9498
9599 let embedUrl = GetParameterByName ( SessionKeys . EmbedUrl ) ;
@@ -98,7 +102,7 @@ function SetTextBoxesFromSessionOrUrlParam(accessTokenSelector, embedUrlSelector
98102 embedUrl = GetSession ( SessionKeys . EmbedUrl ) ;
99103 } else {
100104 let groupId = GetParameterByName ( SessionKeys . GroupId ) ;
101- if ( groupId )
105+ if ( groupId )
102106 {
103107 if ( embedUrl . indexOf ( "?" ) != - 1 )
104108 {
@@ -107,23 +111,30 @@ function SetTextBoxesFromSessionOrUrlParam(accessTokenSelector, embedUrlSelector
107111 embedUrl += "?groupId=" + groupId ;
108112 }
109113 }
114+ SetSession ( SessionKeys . EmbedUrl , embedUrl ) ;
110115 }
111116
112117 let embedId = GetParameterByName ( SessionKeys . EmbedId ) ;
113118 if ( ! embedId )
114119 {
115120 embedId = GetSession ( SessionKeys . EmbedId ) ;
121+ } else {
122+ SetSession ( SessionKeys . EmbedId , embedId ) ;
116123 }
117124
118125 let tokenType = GetParameterByName ( SessionKeys . TokenType ) ;
119126 if ( ! tokenType )
120127 {
121128 tokenType = GetSession ( SessionKeys . TokenType ) ;
129+ } else {
130+ SetSession ( SessionKeys . TokenType , tokenType ) ;
122131 }
123132
124133 let dashboardId = GetParameterByName ( SessionKeys . DashboardId ) ;
125134 if ( ! dashboardId ) {
126135 dashboardId = GetSession ( SessionKeys . DashboardId ) ;
136+ } else {
137+ SetSession ( SessionKeys . DashboardId , dashboardId ) ;
127138 }
128139
129140 $ ( accessTokenSelector ) . val ( accessToken ) ;
0 commit comments