Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
bbf93327
Commit
bbf93327
authored
8 years ago
by
Kalyani
Committed by
Madhan Neethiraj
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1813: UI to escape special characters in URL
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
f2255da1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Utils.js
dashboardv2/public/js/utils/Utils.js
+2
-4
No files found.
dashboardv2/public/js/utils/Utils.js
View file @
bbf93327
...
@@ -229,16 +229,14 @@ define(['require', 'utils/Globals', 'pnotify', 'utils/Messages', 'pnotify.button
...
@@ -229,16 +229,14 @@ define(['require', 'utils/Globals', 'pnotify', 'utils/Messages', 'pnotify.button
if
(
options
.
urlParams
)
{
if
(
options
.
urlParams
)
{
var
urlParams
=
"?"
;
var
urlParams
=
"?"
;
_
.
each
(
options
.
urlParams
,
function
(
value
,
key
,
obj
)
{
_
.
each
(
options
.
urlParams
,
function
(
value
,
key
,
obj
)
{
if
(
value
!=
undefined
||
value
!=
null
)
{
value
=
String
(
value
);
}
value
=
value
||
null
;
if
(
value
)
{
if
(
value
)
{
value
=
encodeURIComponent
(
String
(
value
));
urlParams
+=
key
+
"="
+
value
+
"&"
;
urlParams
+=
key
+
"="
+
value
+
"&"
;
}
}
});
});
urlParams
=
urlParams
.
slice
(
0
,
-
1
);
urlParams
=
urlParams
.
slice
(
0
,
-
1
);
options
.
url
+=
urlParams
;
options
.
url
+=
urlParams
;
}
}
if
(
options
.
updateTabState
)
{
if
(
options
.
updateTabState
)
{
$
.
extend
(
Globals
.
saveApplicationState
.
tabState
,
options
.
updateTabState
());
$
.
extend
(
Globals
.
saveApplicationState
.
tabState
,
options
.
updateTabState
());
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment