YARN-9493. Scheduler Page does not display the right page by query string. Contributed by Wanqiang Ji.
This commit is contained in:
parent
5847e00143
commit
29ff7fb140
@ -28,7 +28,8 @@ private void reopenQueue(Block html) {
|
|||||||
html.
|
html.
|
||||||
script().$type("text/javascript").
|
script().$type("text/javascript").
|
||||||
__("function reopenQueryNodes() {",
|
__("function reopenQueryNodes() {",
|
||||||
" var currentParam = window.location.href.split('?');",
|
" var currentParam = decodeURIComponent(window.location.href)"
|
||||||
|
+ ".split('?');",
|
||||||
" var tmpCurrentParam = currentParam;",
|
" var tmpCurrentParam = currentParam;",
|
||||||
" var queryQueuesString = '';",
|
" var queryQueuesString = '';",
|
||||||
" if (tmpCurrentParam.length > 1) {",
|
" if (tmpCurrentParam.length > 1) {",
|
||||||
@ -136,6 +137,7 @@ private void storeExpandedQueue (Block html) {
|
|||||||
"};",
|
"};",
|
||||||
"",
|
"",
|
||||||
"function removeQueueName(queryString, queueName) {",
|
"function removeQueueName(queryString, queueName) {",
|
||||||
|
" queryString = decodeURIComponent(queryString);",
|
||||||
" var index = queryString.indexOf(queueName);",
|
" var index = queryString.indexOf(queueName);",
|
||||||
" // Finding if queue is present in query param then only remove it",
|
" // Finding if queue is present in query param then only remove it",
|
||||||
" if (index != -1) {",
|
" if (index != -1) {",
|
||||||
|
Loading…
Reference in New Issue
Block a user