Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cribjs-editor
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
cribjs-editor
Commits
3a47ecaf
Commit
3a47ecaf
authored
Oct 02, 2020
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SelectSite Page: Use CribEnable validator and remove useless elements
parent
d8d94128
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
14 deletions
+7
-14
gadget/gadget_cribjs_page_select_site.html
gadget/gadget_cribjs_page_select_site.html
+3
-8
gadget/gadget_cribjs_page_select_site.js
gadget/gadget_cribjs_page_select_site.js
+4
-6
No files found.
gadget/gadget_cribjs_page_select_site.html
View file @
3a47ecaf
...
...
@@ -8,7 +8,6 @@
<!-- renderjs -->
<script
src=
"../lib/rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"../lib/renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"../lib/jszip.js"
type=
"text/javascript"
></script>
<script
src=
"./gadget_global.js"
type=
"text/javascript"
></script>
<!-- Custom -->
...
...
@@ -42,15 +41,11 @@
</div>
</form>
</div>
<div
class=
"interface_validator"
style=
"display:none;"
>
<h4>
Testing Interface
</h4>
<div
data-gadget-url=
"./gadget_interface.html"
data-gadget-scope=
"interface_validator"
<div
class=
"crib_enable_validator"
style=
"display:none;"
>
<div
data-gadget-url=
"./crib_enable_validator.html"
data-gadget-scope=
"crib_enable_validator"
data-gadget-sandbox=
"public"
></div>
</div>
</div>
<div
data-gadget-url=
"./gadget_jio.html"
data-gadget-scope=
"jio_gadget"
data-gadget-sandbox=
"public"
></div>
</body>
</html>
\ No newline at end of file
gadget/gadget_cribjs_page_select_site.js
View file @
3a47ecaf
...
...
@@ -6,15 +6,13 @@
function
setSiteGadgetUrl
(
gadget
,
event
)
{
var
editor_gadget_url
,
gadget_validator
;
editor_gadget_url
=
gadget
.
props
.
element
.
querySelector
(
'
form.site-editor-gadget-url .url
'
).
value
;
return
gadget
.
getDeclaredGadget
(
"
interfac
e_validator
"
)
return
gadget
.
getDeclaredGadget
(
"
crib_enabl
e_validator
"
)
.
push
(
function
(
result
)
{
gadget_validator
=
result
;
gadget
.
props
.
element
.
querySelector
(
'
div.
interfac
e_validator
'
)
gadget
.
props
.
element
.
querySelector
(
'
div.
crib_enabl
e_validator
'
)
.
style
=
""
;
return
gadget_validator
.
render
({
gadget_to_check_url
:
editor_gadget_url
,
required_interface_list
:
[
"
crib-enable-interface.html
"
]
});
return
gadget_validator
.
validateCribEnableGadgetUrl
(
editor_gadget_url
);
})
.
push
(
function
(
result
)
{
if
(
result
)
{
...
...
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