Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rjs_json_form
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
rjs_json_form
Commits
49b2716a
Commit
49b2716a
authored
May 03, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hash computation fixed in convertToRealWorldSchemaPath
parent
550db7a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
gadget_json_generated_form.js
gadget_json_generated_form.js
+8
-4
No files found.
gadget_json_generated_form.js
View file @
49b2716a
...
...
@@ -56,18 +56,22 @@
prev_downl_path
=
getMaxPathInDict
(
map
,
path
);
if
(
prev_downl_path
===
undefined
)
{
url
=
""
;
max_len
=
1
;
max_len
=
0
;
}
else
{
url
=
map
[
prev_downl_path
];
if
(
prev_downl_path
===
"
/
"
)
{
max_len
=
0
;
}
else
{
max_len
=
prev_downl_path
.
length
;
}
hash
=
path
.
substr
(
max_len
-
1
);
}
hash
=
path
.
substr
(
max_len
);
if
(
hash
)
{
// XXX urlencode for hash
if
(
url
.
indexOf
(
"
#
"
)
>=
0
)
{
url
=
url
+
hash
;
}
else
{
url
=
url
+
"
#
"
+
path
.
substr
(
max_len
-
1
)
;
url
=
url
+
"
#
"
+
hash
;
}
}
return
url
;
...
...
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