Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
solo-1
Commits
7add1d90
Unverified
Commit
7add1d90
authored
Oct 23, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
#12861 友情链接图标字段更新
parent
84dc9e4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
src/main/webapp/admin/admin-link-list.ftl
src/main/webapp/admin/admin-link-list.ftl
+6
-2
src/main/webapp/js/admin/linkList.js
src/main/webapp/js/admin/linkList.js
+8
-3
No files found.
src/main/webapp/admin/admin-link-list.ftl
View file @
7add1d90
...
...
@@ -29,7 +29,9 @@ ${addLinkLabel}
<label>${url1Label}</label>
<input id="linkAddress" type="text"/>
<label>${linkDescription1Label}</label>
<input id="linkDescription" type="text"/> <br><br>
<input id="linkDescription" type="text"/>
<label>${linkIcon1Label}</label>
<input id="linkIcon" type="text"/><br><br>
<button onclick="admin.linkList.add();" class="fn__right">${saveLabel}</button>
<div class="fn__clear"></div>
</div>
...
...
@@ -39,7 +41,9 @@ ${addLinkLabel}
<label>${url1Label}</label>
<input id="linkAddressUpdate" type="text"/>
<label>${linkDescription1Label}</label>
<input id="linkDescriptionUpdate" type="text"/><br><br>
<input id="linkDescriptionUpdate" type="text"/>
<label>${linkIcon1Label}</label>
<input id="linkIconUpdate" type="text"/><br><br>
<button onclick="admin.linkList.update();" class="fn__right">${updateLabel}</button>
<div class="fn__clear"></div>
</div>
...
...
src/main/webapp/js/admin/linkList.js
View file @
7add1d90
...
...
@@ -20,7 +20,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.2.
1, Oct 24, 2018
* @version 1.1.2.
2, Oct 23, 2019
*/
/* link-list 相关操作 */
...
...
@@ -123,6 +123,7 @@ admin.linkList = {
linkData
[
i
].
linkAddress
=
"
<a target='_blank' class='no-underline' href='
"
+
links
[
i
].
linkAddress
+
"
'>
"
+
links
[
i
].
linkAddress
+
"
</a>
"
;
linkData
[
i
].
linkDescription
=
links
[
i
].
linkDescription
;
linkData
[
i
].
linkIcon
=
links
[
i
].
linkIcon
;
linkData
[
i
].
expendRow
=
"
<span><a href='
"
+
links
[
i
].
linkAddress
+
"
' target='_blank'>
"
+
Label
.
viewLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.linkList.get('
"
+
links
[
i
].
oId
+
"
')
\"
>
"
+
Label
.
updateLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.linkList.del('
"
+
links
[
i
].
oId
+
"
', '
"
+
encodeURIComponent
(
links
[
i
].
linkTitle
)
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a></span>
"
;
...
...
@@ -146,7 +147,8 @@ admin.linkList = {
"
link
"
:
{
"
linkTitle
"
:
$
(
"
#linkTitle
"
).
val
(),
"
linkAddress
"
:
$
(
"
#linkAddress
"
).
val
(),
"
linkDescription
"
:
$
(
"
#linkDescription
"
).
val
()
"
linkDescription
"
:
$
(
"
#linkDescription
"
).
val
(),
"
linkIcon
"
:
$
(
"
#linkIcon
"
).
val
(),
}
};
...
...
@@ -165,6 +167,7 @@ admin.linkList = {
$
(
"
#linkTitle
"
).
val
(
""
);
$
(
"
#linkAddress
"
).
val
(
""
);
$
(
"
#linkDescription
"
).
val
(
""
);
$
(
"
#linkIcon
"
).
val
(
""
);
if
(
admin
.
linkList
.
pageInfo
.
currentCount
===
Label
.
PAGE_SIZE
&&
admin
.
linkList
.
pageInfo
.
currentPage
===
admin
.
linkList
.
pageInfo
.
pageCount
)
{
admin
.
linkList
.
pageInfo
.
pageCount
++
;
...
...
@@ -206,6 +209,7 @@ admin.linkList = {
$
(
"
#linkTitleUpdate
"
).
val
(
result
.
link
.
linkTitle
);
$
(
"
#linkAddressUpdate
"
).
val
(
result
.
link
.
linkAddress
);
$
(
"
#linkDescriptionUpdate
"
).
val
(
result
.
link
.
linkDescription
);
$
(
"
#linkIconUpdate
"
).
val
(
result
.
link
.
linkIcon
);
$
(
"
#loadMsg
"
).
text
(
""
);
}
...
...
@@ -224,7 +228,8 @@ admin.linkList = {
"
linkTitle
"
:
$
(
"
#linkTitleUpdate
"
).
val
(),
"
oId
"
:
this
.
id
,
"
linkAddress
"
:
$
(
"
#linkAddressUpdate
"
).
val
(),
"
linkDescription
"
:
$
(
"
#linkDescriptionUpdate
"
).
val
()
"
linkDescription
"
:
$
(
"
#linkDescriptionUpdate
"
).
val
(),
"
linkIcon
"
:
$
(
"
#linkIconUpdate
"
).
val
(),
}
};
...
...
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