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
de5bc8ec
Commit
de5bc8ec
authored
Jul 16, 2020
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update URL List page
parent
a7d5e8b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
gadget/gadget_cribjs_page_url_list.html
gadget/gadget_cribjs_page_url_list.html
+1
-1
gadget/gadget_cribjs_page_url_list.js
gadget/gadget_cribjs_page_url_list.js
+6
-2
No files found.
gadget/gadget_cribjs_page_url_list.html
View file @
de5bc8ec
...
...
@@ -22,8 +22,8 @@
<table
class=
"table table-striped table-condensed"
>
<thead>
<tr>
<th>
Cached
</th>
<th>
Url
</th>
<th>
Edit
</th>
<th>
Go
</th>
</tr>
</thead>
...
...
gadget/gadget_cribjs_page_url_list.js
View file @
de5bc8ec
...
...
@@ -40,12 +40,16 @@
var
element
;
trElement
=
document
.
createElement
(
'
tr
'
);
tdElement
=
document
.
createElement
(
'
td
'
);
tdElement
.
innerHTML
=
(
url_list
[
url
].
cached
?
"
<span>✓</span>
"
:
""
);
element
=
document
.
createElement
(
'
a
'
);
element
.
setAttribute
(
'
href
'
,
url_link_list
[
url_number
]);
element
.
textContent
=
url
;
tdElement
.
appendChild
(
element
);
trElement
.
appendChild
(
tdElement
);
tdElement
=
document
.
createElement
(
'
td
'
);
element
=
document
.
createElement
(
'
a
'
);
element
.
textContent
=
"
Edit
"
;
element
.
setAttribute
(
'
href
'
,
url_link_list
[
url_number
]);
element
.
textContent
=
url
;
element
.
setAttribute
(
"
class
"
,
"
btn btn-default btn-xs
"
)
;
tdElement
.
appendChild
(
element
);
trElement
.
appendChild
(
tdElement
);
tdElement
=
document
.
createElement
(
'
td
'
);
...
...
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