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
ea746414
Unverified
Commit
ea746414
authored
Mar 17, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
#12706
parent
96da7dbb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
src/main/webapp/admin/admin-preference.ftl
src/main/webapp/admin/admin-preference.ftl
+2
-0
src/main/webapp/js/admin/preference.js
src/main/webapp/js/admin/preference.js
+3
-1
No files found.
src/main/webapp/admin/admin-preference.ftl
View file @
ea746414
...
@@ -125,6 +125,8 @@
...
@@ -125,6 +125,8 @@
</select>
</select>
<label for="feedOutputCnt">${feedOutputCnt1Label}</label>
<label for="feedOutputCnt">${feedOutputCnt1Label}</label>
<input id="feedOutputCnt" class="normalInput" type="text"/>
<input id="feedOutputCnt" class="normalInput" type="text"/>
<label for="faviconURL">Favicon</label>
<input id="faviconURL" class="normalInput" type="text"/>
<label for="customVars">${customVars1Label}</label>
<label for="customVars">${customVars1Label}</label>
<input id="customVars" class="normalInput" type="text"/><br/><br/>
<input id="customVars" class="normalInput" type="text"/><br/><br/>
<button class="fn__right" onclick="admin.preference.update()">${updateLabel}</button>
<button class="fn__right" onclick="admin.preference.update()">${updateLabel}</button>
...
...
src/main/webapp/js/admin/preference.js
View file @
ea746414
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
*
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.3.0.
0, Feb 28
, 2019
* @version 1.3.0.
1, Mar 17
, 2019
*/
*/
/* preference 相关操作 */
/* preference 相关操作 */
...
@@ -122,6 +122,7 @@ admin.preference = {
...
@@ -122,6 +122,7 @@ admin.preference = {
$
(
'
#articleListDisplay
'
).
val
(
preference
.
articleListStyle
)
$
(
'
#articleListDisplay
'
).
val
(
preference
.
articleListStyle
)
$
(
'
#feedOutputMode
'
).
val
(
preference
.
feedOutputMode
)
$
(
'
#feedOutputMode
'
).
val
(
preference
.
feedOutputMode
)
$
(
'
#feedOutputCnt
'
).
val
(
preference
.
feedOutputCnt
)
$
(
'
#feedOutputCnt
'
).
val
(
preference
.
feedOutputCnt
)
$
(
'
#faviconURL
'
).
val
(
preference
.
faviconURL
)
$
(
'
#loadMsg
'
).
text
(
''
)
$
(
'
#loadMsg
'
).
text
(
''
)
},
},
...
@@ -254,6 +255,7 @@ admin.preference = {
...
@@ -254,6 +255,7 @@ admin.preference = {
'
articleListStyle
'
:
$
(
'
#articleListDisplay
'
).
val
(),
'
articleListStyle
'
:
$
(
'
#articleListDisplay
'
).
val
(),
'
feedOutputMode
'
:
$
(
'
#feedOutputMode
'
).
val
(),
'
feedOutputMode
'
:
$
(
'
#feedOutputMode
'
).
val
(),
'
feedOutputCnt
'
:
$
(
'
#feedOutputCnt
'
).
val
(),
'
feedOutputCnt
'
:
$
(
'
#feedOutputCnt
'
).
val
(),
'
faviconURL
'
:
$
(
'
#faviconURL
'
).
val
(),
'
commentable
'
:
$
(
'
#commentable
'
).
prop
(
'
checked
'
),
'
commentable
'
:
$
(
'
#commentable
'
).
prop
(
'
checked
'
),
'
customVars
'
:
$
(
'
#customVars
'
).
val
(),
'
customVars
'
:
$
(
'
#customVars
'
).
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