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
1f627801
Commit
1f627801
authored
Aug 28, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix document loading from jio
parent
0ffcd284
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
jsonform.gadget.js
jsonform.gadget.js
+12
-12
No files found.
jsonform.gadget.js
View file @
1f627801
...
...
@@ -27,12 +27,12 @@
url
=
new
URL
(
url
,
base_url
);
if
(
urn_prefix
)
{
pathname
=
url
.
pathname
.
slice
(
1
);
return
{
href
:
urn_prefix
+
encodeURIComponent
(
pathname
+
url
.
search
+
url
.
hash
),
origin
:
urn_prefix
,
pathname
:
encodeURIComponent
(
pathname
),
hash
:
url
.
hash
}
;
this
.
href
=
urn_prefix
+
encodeURIComponent
(
pathname
+
url
.
search
+
url
.
hash
);
this
.
origin
=
urn_prefix
;
this
.
pathname
=
encodeURIComponent
(
pathname
);
this
.
hash
=
url
.
hash
;
this
.
search
=
""
;
return
this
;
}
return
url
;
}
...
...
@@ -119,9 +119,9 @@
base_url
=
convertToRealWorldSchemaPath
(
g
,
path
),
absolute_url
;
if
(
base_url
===
""
||
base_url
.
indexOf
(
"
#
"
)
===
0
)
{
absolute_url
=
URLwithJio
(
url
,
base_url_failback
);
absolute_url
=
new
URLwithJio
(
url
,
base_url_failback
);
}
else
{
absolute_url
=
URLwithJio
(
url
,
base_url
);
absolute_url
=
new
URLwithJio
(
url
,
base_url
);
}
return
absolute_url
;
}
...
...
@@ -223,7 +223,7 @@
}
url
=
convertUrlToAbsolute
(
g
,
path
,
decodeURI
(
$ref
),
window
.
location
);
mapped_url
=
map_url
(
g
,
url
);
if
(
mapped_url
instanceof
URL
)
{
if
(
mapped_url
instanceof
URL
||
mapped_url
instanceof
URLwithJio
)
{
url
=
mapped_url
;
}
protocol
=
url
.
protocol
;
...
...
@@ -236,7 +236,7 @@
download_url
=
url
.
origin
+
url
.
pathname
+
url
.
search
;
hash
=
url
.
hash
;
url
=
url
.
href
;
if
(
!
(
mapped_url
instanceof
URL
))
{
if
(
!
(
mapped_url
instanceof
URL
||
mapped_url
instanceof
URLwithJio
))
{
queue
=
RSVP
.
Queue
()
.
push
(
function
()
{
return
mapped_url
;
...
...
@@ -268,9 +268,9 @@
schema_a
=
document
.
createElement
(
"
a
"
),
pointed_a
=
document
.
createElement
(
"
a
"
);
schema_a
.
setAttribute
(
"
href
"
,
download_url
);
schema_a
.
text
=
(
URLwithJio
(
download_url
)).
pathname
;
schema_a
.
text
=
(
new
URLwithJio
(
download_url
)).
pathname
;
pointed_a
.
setAttribute
(
"
href
"
,
url_from_pointed
);
pointed_a
.
text
=
(
URLwithJio
(
url_from_pointed
)).
pathname
;
pointed_a
.
text
=
(
new
URLwithJio
(
url_from_pointed
)).
pathname
;
g
.
props
.
schema_resolve_errors
[
url_from_pointed
]
=
{
schemaPath
:
path
,
message
:
[
...
...
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