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
09c41fad
Unverified
Commit
09c41fad
authored
Mar 06, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
Fix #12699
parent
0b721591
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
110 additions
and
62 deletions
+110
-62
src/main/java/org/b3log/solo/model/Option.java
src/main/java/org/b3log/solo/model/Option.java
+0
-10
src/main/java/org/b3log/solo/processor/B3Receiver.java
src/main/java/org/b3log/solo/processor/B3Receiver.java
+7
-7
src/main/java/org/b3log/solo/processor/OAuthProcessor.java
src/main/java/org/b3log/solo/processor/OAuthProcessor.java
+0
-7
src/main/java/org/b3log/solo/processor/console/PreferenceConsole.java
...a/org/b3log/solo/processor/console/PreferenceConsole.java
+0
-2
src/main/java/org/b3log/solo/service/InitService.java
src/main/java/org/b3log/solo/service/InitService.java
+0
-6
src/main/java/org/b3log/solo/service/OptionQueryService.java
src/main/java/org/b3log/solo/service/OptionQueryService.java
+5
-5
src/main/java/org/b3log/solo/service/PreferenceMgmtService.java
...in/java/org/b3log/solo/service/PreferenceMgmtService.java
+0
-4
src/main/java/org/b3log/solo/upgrade/V320_330.java
src/main/java/org/b3log/solo/upgrade/V320_330.java
+87
-0
src/main/resources/lang_en_US.properties
src/main/resources/lang_en_US.properties
+0
-2
src/main/resources/lang_zh_CN.properties
src/main/resources/lang_zh_CN.properties
+0
-2
src/main/resources/local.properties
src/main/resources/local.properties
+10
-10
src/main/webapp/admin/admin-preference.ftl
src/main/webapp/admin/admin-preference.ftl
+0
-2
src/main/webapp/js/admin/admin.min.js
src/main/webapp/js/admin/admin.min.js
+1
-1
src/main/webapp/js/admin/preference.js
src/main/webapp/js/admin/preference.js
+0
-4
No files found.
src/main/java/org/b3log/solo/model/Option.java
View file @
09c41fad
...
@@ -162,11 +162,6 @@ public final class Option {
...
@@ -162,11 +162,6 @@ public final class Option {
*/
*/
public
static
final
String
ID_C_ALLOW_VISIT_DRAFT_VIA_PERMALINK
=
"allowVisitDraftViaPermalink"
;
public
static
final
String
ID_C_ALLOW_VISIT_DRAFT_VIA_PERMALINK
=
"allowVisitDraftViaPermalink"
;
/**
* Key of allow register.
*/
public
static
final
String
ID_C_ALLOW_REGISTER
=
"allowRegister"
;
/**
/**
* Key of version.
* Key of version.
*/
*/
...
@@ -396,11 +391,6 @@ public final class Option {
...
@@ -396,11 +391,6 @@ public final class Option {
*/
*/
public
static
final
String
DEFAULT_ALLOW_VISIT_DRAFT_VIA_PERMALINK
=
"false"
;
public
static
final
String
DEFAULT_ALLOW_VISIT_DRAFT_VIA_PERMALINK
=
"false"
;
/**
* Default allow register.
*/
public
static
final
String
DEFAULT_ALLOW_REGISTER
=
"true"
;
/**
/**
* Default allow comment article/page.
* Default allow comment article/page.
*/
*/
...
...
src/main/java/org/b3log/solo/processor/B3Receiver.java
View file @
09c41fad
...
@@ -290,13 +290,6 @@ public class B3Receiver {
...
@@ -290,13 +290,6 @@ public class B3Receiver {
final
JSONObject
commenter
=
userRepository
.
getByUserName
(
commentName
);
final
JSONObject
commenter
=
userRepository
.
getByUserName
(
commentName
);
if
(
null
==
commenter
)
{
if
(
null
==
commenter
)
{
// 社区回帖同步博客评论 https://github.com/b3log/solo/issues/12691
// 社区回帖同步博客评论 https://github.com/b3log/solo/issues/12691
if
(!
optionQueryService
.
allowRegister
())
{
ret
.
put
(
Keys
.
CODE
,
1
);
ret
.
put
(
Keys
.
MSG
,
"Not allow register"
);
return
;
}
final
JSONObject
addUserReq
=
new
JSONObject
();
final
JSONObject
addUserReq
=
new
JSONObject
();
addUserReq
.
put
(
User
.
USER_NAME
,
commentName
);
addUserReq
.
put
(
User
.
USER_NAME
,
commentName
);
addUserReq
.
put
(
UserExt
.
USER_AVATAR
,
commentThumbnailURL
);
addUserReq
.
put
(
UserExt
.
USER_AVATAR
,
commentThumbnailURL
);
...
@@ -314,6 +307,13 @@ public class B3Receiver {
...
@@ -314,6 +307,13 @@ public class B3Receiver {
}
}
}
}
if
(!
optionQueryService
.
allowComment
()
||
!
article
.
optBoolean
(
Article
.
ARTICLE_COMMENTABLE
))
{
ret
.
put
(
Keys
.
CODE
,
1
);
ret
.
put
(
Keys
.
MSG
,
"Not allow comment"
);
return
;
}
String
commentContent
=
symCmt
.
getString
(
"content"
);
// Markdown
String
commentContent
=
symCmt
.
getString
(
"content"
);
// Markdown
final
Transaction
transaction
=
commentRepository
.
beginTransaction
();
final
Transaction
transaction
=
commentRepository
.
beginTransaction
();
...
...
src/main/java/org/b3log/solo/processor/OAuthProcessor.java
View file @
09c41fad
...
@@ -190,13 +190,6 @@ public class OAuthProcessor {
...
@@ -190,13 +190,6 @@ public class OAuthProcessor {
}
else
{
}
else
{
user
=
userQueryService
.
getUserByName
(
userName
);
user
=
userQueryService
.
getUserByName
(
userName
);
if
(
null
==
user
)
{
if
(
null
==
user
)
{
if
(!
optionQueryService
.
allowRegister
())
{
context
.
attr
(
Keys
.
MSG
,
langPropsService
.
get
(
"notAllowRegisterLabel"
));
context
.
sendError
(
HttpServletResponse
.
SC_FORBIDDEN
);
return
;
}
final
JSONObject
addUserReq
=
new
JSONObject
();
final
JSONObject
addUserReq
=
new
JSONObject
();
addUserReq
.
put
(
User
.
USER_NAME
,
userName
);
addUserReq
.
put
(
User
.
USER_NAME
,
userName
);
addUserReq
.
put
(
UserExt
.
USER_AVATAR
,
userAvatar
);
addUserReq
.
put
(
UserExt
.
USER_AVATAR
,
userAvatar
);
...
...
src/main/java/org/b3log/solo/processor/console/PreferenceConsole.java
View file @
09c41fad
...
@@ -162,7 +162,6 @@ public class PreferenceConsole {
...
@@ -162,7 +162,6 @@ public class PreferenceConsole {
* "signHTML": ""
* "signHTML": ""
* }, ...]",
* }, ...]",
* "allowVisitDraftViaPermalink": boolean,
* "allowVisitDraftViaPermalink": boolean,
* "allowRegister": boolean,
* "version": "",
* "version": "",
* "articleListStyle": "", // Optional values: "titleOnly"/"titleAndContent"/"titleAndAbstract"
* "articleListStyle": "", // Optional values: "titleOnly"/"titleAndContent"/"titleAndAbstract"
* "commentable": boolean,
* "commentable": boolean,
...
@@ -241,7 +240,6 @@ public class PreferenceConsole {
...
@@ -241,7 +240,6 @@ public class PreferenceConsole {
* "signHTML": ""
* "signHTML": ""
* }, ...],
* }, ...],
* "allowVisitDraftViaPermalink": boolean,
* "allowVisitDraftViaPermalink": boolean,
* "allowRegister": boolean,
* "articleListStyle": "",
* "articleListStyle": "",
* "commentable": boolean,
* "commentable": boolean,
* "feedOutputMode: "",
* "feedOutputMode: "",
...
...
src/main/java/org/b3log/solo/service/InitService.java
View file @
09c41fad
...
@@ -605,12 +605,6 @@ public class InitService {
...
@@ -605,12 +605,6 @@ public class InitService {
allowVisitDraftViaPermalinkOpt
.
put
(
Option
.
OPTION_VALUE
,
DefaultPreference
.
DEFAULT_ALLOW_VISIT_DRAFT_VIA_PERMALINK
);
allowVisitDraftViaPermalinkOpt
.
put
(
Option
.
OPTION_VALUE
,
DefaultPreference
.
DEFAULT_ALLOW_VISIT_DRAFT_VIA_PERMALINK
);
optionRepository
.
add
(
allowVisitDraftViaPermalinkOpt
);
optionRepository
.
add
(
allowVisitDraftViaPermalinkOpt
);
final
JSONObject
allowRegisterOpt
=
new
JSONObject
();
allowRegisterOpt
.
put
(
Keys
.
OBJECT_ID
,
Option
.
ID_C_ALLOW_REGISTER
);
allowRegisterOpt
.
put
(
Option
.
OPTION_CATEGORY
,
Option
.
CATEGORY_C_PREFERENCE
);
allowRegisterOpt
.
put
(
Option
.
OPTION_VALUE
,
DefaultPreference
.
DEFAULT_ALLOW_REGISTER
);
optionRepository
.
add
(
allowRegisterOpt
);
final
JSONObject
commentableOpt
=
new
JSONObject
();
final
JSONObject
commentableOpt
=
new
JSONObject
();
commentableOpt
.
put
(
Keys
.
OBJECT_ID
,
Option
.
ID_C_COMMENTABLE
);
commentableOpt
.
put
(
Keys
.
OBJECT_ID
,
Option
.
ID_C_COMMENTABLE
);
commentableOpt
.
put
(
Option
.
OPTION_CATEGORY
,
Option
.
CATEGORY_C_PREFERENCE
);
commentableOpt
.
put
(
Option
.
OPTION_CATEGORY
,
Option
.
CATEGORY_C_PREFERENCE
);
...
...
src/main/java/org/b3log/solo/service/OptionQueryService.java
View file @
09c41fad
...
@@ -63,17 +63,17 @@ public class OptionQueryService {
...
@@ -63,17 +63,17 @@ public class OptionQueryService {
}
}
/**
/**
* Checks whether allow
register
.
* Checks whether allow
comment globally
.
*
*
* @return {@code true} to allow
register
, returns {@code false} otherwise
* @return {@code true} to allow
comment
, returns {@code false} otherwise
*/
*/
public
boolean
allow
Register
()
{
public
boolean
allow
Comment
()
{
try
{
try
{
final
JSONObject
opt
=
optionRepository
.
get
(
Option
.
ID_C_
ALLOW_REGISTER
);
final
JSONObject
opt
=
optionRepository
.
get
(
Option
.
ID_C_
COMMENTABLE
);
return
opt
.
optBoolean
(
Option
.
OPTION_VALUE
);
return
opt
.
optBoolean
(
Option
.
OPTION_VALUE
);
}
catch
(
final
Exception
e
)
{
}
catch
(
final
Exception
e
)
{
LOGGER
.
log
(
Level
.
ERROR
,
"Checks allow
register
failed"
,
e
);
LOGGER
.
log
(
Level
.
ERROR
,
"Checks allow
comment
failed"
,
e
);
return
false
;
return
false
;
}
}
...
...
src/main/java/org/b3log/solo/service/PreferenceMgmtService.java
View file @
09c41fad
...
@@ -191,10 +191,6 @@ public class PreferenceMgmtService {
...
@@ -191,10 +191,6 @@ public class PreferenceMgmtService {
allowVisitDraftViaPermalinkOpt
.
put
(
Option
.
OPTION_VALUE
,
preference
.
optString
(
Option
.
ID_C_ALLOW_VISIT_DRAFT_VIA_PERMALINK
));
allowVisitDraftViaPermalinkOpt
.
put
(
Option
.
OPTION_VALUE
,
preference
.
optString
(
Option
.
ID_C_ALLOW_VISIT_DRAFT_VIA_PERMALINK
));
optionRepository
.
update
(
Option
.
ID_C_ALLOW_VISIT_DRAFT_VIA_PERMALINK
,
allowVisitDraftViaPermalinkOpt
);
optionRepository
.
update
(
Option
.
ID_C_ALLOW_VISIT_DRAFT_VIA_PERMALINK
,
allowVisitDraftViaPermalinkOpt
);
final
JSONObject
allowRegisterOpt
=
optionRepository
.
get
(
Option
.
ID_C_ALLOW_REGISTER
);
allowRegisterOpt
.
put
(
Option
.
OPTION_VALUE
,
preference
.
optString
(
Option
.
ID_C_ALLOW_REGISTER
));
optionRepository
.
update
(
Option
.
ID_C_ALLOW_REGISTER
,
allowRegisterOpt
);
final
JSONObject
articleListDisplayCountOpt
=
optionRepository
.
get
(
Option
.
ID_C_ARTICLE_LIST_DISPLAY_COUNT
);
final
JSONObject
articleListDisplayCountOpt
=
optionRepository
.
get
(
Option
.
ID_C_ARTICLE_LIST_DISPLAY_COUNT
);
articleListDisplayCountOpt
.
put
(
Option
.
OPTION_VALUE
,
preference
.
optString
(
Option
.
ID_C_ARTICLE_LIST_DISPLAY_COUNT
));
articleListDisplayCountOpt
.
put
(
Option
.
OPTION_VALUE
,
preference
.
optString
(
Option
.
ID_C_ARTICLE_LIST_DISPLAY_COUNT
));
optionRepository
.
update
(
Option
.
ID_C_ARTICLE_LIST_DISPLAY_COUNT
,
articleListDisplayCountOpt
);
optionRepository
.
update
(
Option
.
ID_C_ARTICLE_LIST_DISPLAY_COUNT
,
articleListDisplayCountOpt
);
...
...
src/main/java/org/b3log/solo/upgrade/V320_330.java
0 → 100644
View file @
09c41fad
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package
org
.
b3log
.
solo
.
upgrade
;
import
org.b3log.latke.Keys
;
import
org.b3log.latke.Latkes
;
import
org.b3log.latke.ioc.BeanManager
;
import
org.b3log.latke.logging.Level
;
import
org.b3log.latke.logging.Logger
;
import
org.b3log.latke.repository.FilterOperator
;
import
org.b3log.latke.repository.PropertyFilter
;
import
org.b3log.latke.repository.Query
;
import
org.b3log.latke.repository.Transaction
;
import
org.b3log.latke.repository.jdbc.util.Connections
;
import
org.b3log.solo.model.Article
;
import
org.b3log.solo.model.Option
;
import
org.b3log.solo.repository.ArticleRepository
;
import
org.b3log.solo.repository.OptionRepository
;
import
org.json.JSONObject
;
import
java.sql.Connection
;
import
java.sql.Statement
;
import
java.util.List
;
/**
* Upgrade script from v3.2.0 to v3.3.0.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.0, Mar 6, 2019
* @since 3.3.0
*/
public
final
class
V320_330
{
/**
* Logger.
*/
private
static
final
Logger
LOGGER
=
Logger
.
getLogger
(
V320_330
.
class
);
/**
* Performs upgrade from v3.2.0 to v3.3.0.
*
* @throws Exception upgrade fails
*/
public
static
void
perform
()
throws
Exception
{
final
String
fromVer
=
"3.2.0"
;
final
String
toVer
=
"3.3.0"
;
LOGGER
.
log
(
Level
.
INFO
,
"Upgrading from version ["
+
fromVer
+
"] to version ["
+
toVer
+
"]...."
);
final
BeanManager
beanManager
=
BeanManager
.
getInstance
();
final
OptionRepository
optionRepository
=
beanManager
.
getReference
(
OptionRepository
.
class
);
final
ArticleRepository
articleRepository
=
beanManager
.
getReference
(
ArticleRepository
.
class
);
try
{
final
Transaction
transaction
=
optionRepository
.
beginTransaction
();
optionRepository
.
remove
(
"allowRegister"
);
final
JSONObject
versionOpt
=
optionRepository
.
get
(
Option
.
ID_C_VERSION
);
versionOpt
.
put
(
Option
.
OPTION_VALUE
,
toVer
);
optionRepository
.
update
(
Option
.
ID_C_VERSION
,
versionOpt
);
transaction
.
commit
();
LOGGER
.
log
(
Level
.
INFO
,
"Upgraded from version ["
+
fromVer
+
"] to version ["
+
toVer
+
"] successfully"
);
}
catch
(
final
Exception
e
)
{
LOGGER
.
log
(
Level
.
ERROR
,
"Upgrade failed!"
,
e
);
throw
new
Exception
(
"Upgrade failed from version ["
+
fromVer
+
"] to version ["
+
toVer
+
"]"
);
}
}
}
src/main/resources/lang_en_US.properties
View file @
09c41fad
...
@@ -70,8 +70,6 @@ dynamicLabel=Dynamic
...
@@ -70,8 +70,6 @@ dynamicLabel=Dynamic
exportSQLLabel
=
Export SQL file
exportSQLLabel
=
Export SQL file
exportJSONLabel
=
Export JSON file
exportJSONLabel
=
Export JSON file
exportHexoLabel
=
Export Hexo file
exportHexoLabel
=
Export Hexo file
notAllowRegisterLabel
=
Not allow register
allowRegister1Label
=
Allow Register:
footerContent1Label
=
Footer:
footerContent1Label
=
Footer:
userAvatar1Label
=
Avatar:
userAvatar1Label
=
Avatar:
staticErrorLabel
=
<h2>Latke Configuraton Error</h2>
\
staticErrorLabel
=
<h2>Latke Configuraton Error</h2>
\
...
...
src/main/resources/lang_zh_CN.properties
View file @
09c41fad
...
@@ -70,8 +70,6 @@ dynamicLabel=\u52A8\u6001
...
@@ -70,8 +70,6 @@ dynamicLabel=\u52A8\u6001
exportSQLLabel
=
\u
5BFC
\u
51FA SQL
\u6587\u
4EF6
exportSQLLabel
=
\u
5BFC
\u
51FA SQL
\u6587\u
4EF6
exportJSONLabel
=
\u
5BFC
\u
51FA JSON
\u6587\u
4EF6
exportJSONLabel
=
\u
5BFC
\u
51FA JSON
\u6587\u
4EF6
exportHexoLabel
=
\u
5BFC
\u
51FA Hexo
\u6587\u
4EF6
exportHexoLabel
=
\u
5BFC
\u
51FA Hexo
\u6587\u
4EF6
notAllowRegisterLabel
=
\u6682\u
4E0D
\u
5F00
\u
653E
\u
6CE8
\u
518C
\u
FF01
allowRegister1Label
=
\u5141\u
8BB8
\u
6CE8
\u
518C
\u
FF1A
footerContent1Label
=
\u9875\u
811A
\u
FF1A
footerContent1Label
=
\u9875\u
811A
\u
FF1A
userAvatar1Label
=
\u5934\u
50CF
\u
FF1A
userAvatar1Label
=
\u5934\u
50CF
\u
FF1A
staticErrorLabel
=
<h2><a href='https://hacpai.com/tag/Latke' target='_blank'>Latke</a>
\u
914D
\u
7F6E
\u9519\u
8BEF</h2>
\
staticErrorLabel
=
<h2><a href='https://hacpai.com/tag/Latke' target='_blank'>Latke</a>
\u
914D
\u
7F6E
\u9519\u
8BEF</h2>
\
...
...
src/main/resources/local.properties
View file @
09c41fad
...
@@ -23,18 +23,18 @@
...
@@ -23,18 +23,18 @@
#
#
#### H2 runtime ####
#### H2 runtime ####
runtimeDatabase
=
H2
#
runtimeDatabase=H2
jdbc.username
=
root
#
jdbc.username=root
jdbc.password
=
#
jdbc.password=
jdbc.driver
=
org.h2.Driver
#
jdbc.driver=org.h2.Driver
jdbc.URL
=
jdbc:h2:~/solo_h2/db
#
jdbc.URL=jdbc:h2:~/solo_h2/db
#### MySQL runtime ####
#### MySQL runtime ####
#
runtimeDatabase=MYSQL
runtimeDatabase
=
MYSQL
#
jdbc.username=root
jdbc.username
=
root
#
jdbc.password=123456
jdbc.password
=
123456
#
jdbc.driver=com.mysql.cj.jdbc.Driver
jdbc.driver
=
com.mysql.cj.jdbc.Driver
#
jdbc.URL=jdbc:mysql://localhost:3306/solo?useUnicode=yes&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC
jdbc.URL
=
jdbc:mysql://localhost:3306/solo?useUnicode=yes&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC
# The minConnCnt MUST larger or equal to 3
# The minConnCnt MUST larger or equal to 3
jdbc.minConnCnt
=
5
jdbc.minConnCnt
=
5
...
...
src/main/webapp/admin/admin-preference.ftl
View file @
09c41fad
...
@@ -106,8 +106,6 @@
...
@@ -106,8 +106,6 @@
<input id="allowVisitDraftViaPermalink" type="checkbox" class="normalInput"/>
<input id="allowVisitDraftViaPermalink" type="checkbox" class="normalInput"/>
<label for="commentable">${allowComment1Label}</label>
<label for="commentable">${allowComment1Label}</label>
<input id="commentable" type="checkbox" class="normalInput"/>
<input id="commentable" type="checkbox" class="normalInput"/>
<label for="allowRegister">${allowRegister1Label}</label>
<input id="allowRegister" type="checkbox" class="normalInput"/>
<label for="feedOutputMode">${feedOutputModel1Label}</label>
<label for="feedOutputMode">${feedOutputModel1Label}</label>
<select id="feedOutputMode">
<select id="feedOutputMode">
<option value="abstract">${abstractLabel}</option>
<option value="abstract">${abstractLabel}</option>
...
...
src/main/webapp/js/admin/admin.min.js
View file @
09c41fad
This diff is collapsed.
Click to expand it.
src/main/webapp/js/admin/preference.js
View file @
09c41fad
...
@@ -78,9 +78,6 @@ admin.preference = {
...
@@ -78,9 +78,6 @@ admin.preference = {
'
true
'
===
preference
.
allowVisitDraftViaPermalink
?
$
(
'
true
'
===
preference
.
allowVisitDraftViaPermalink
?
$
(
'
#allowVisitDraftViaPermalink
'
).
attr
(
'
checked
'
,
'
checked
'
)
:
$
(
'
#allowVisitDraftViaPermalink
'
).
attr
(
'
checked
'
,
'
checked
'
)
:
$
(
'
allowVisitDraftViaPermalink
'
).
removeAttr
(
'
checked
'
)
'
allowVisitDraftViaPermalink
'
).
removeAttr
(
'
checked
'
)
'
true
'
===
preference
.
allowRegister
?
$
(
'
#allowRegister
'
).
attr
(
'
checked
'
,
'
checked
'
)
:
$
(
'
#allowRegister
'
).
removeAttr
(
'
checked
'
)
'
true
'
===
preference
.
commentable
?
$
(
'
#commentable
'
).
'
true
'
===
preference
.
commentable
?
$
(
'
#commentable
'
).
attr
(
'
checked
'
,
'
checked
'
)
:
$
(
'
commentable
'
).
removeAttr
(
'
checked
'
)
attr
(
'
checked
'
,
'
checked
'
)
:
$
(
'
commentable
'
).
removeAttr
(
'
checked
'
)
...
@@ -258,7 +255,6 @@ admin.preference = {
...
@@ -258,7 +255,6 @@ admin.preference = {
'
feedOutputMode
'
:
$
(
'
#feedOutputMode
'
).
val
(),
'
feedOutputMode
'
:
$
(
'
#feedOutputMode
'
).
val
(),
'
feedOutputCnt
'
:
$
(
'
#feedOutputCnt
'
).
val
(),
'
feedOutputCnt
'
:
$
(
'
#feedOutputCnt
'
).
val
(),
'
commentable
'
:
$
(
'
#commentable
'
).
prop
(
'
checked
'
),
'
commentable
'
:
$
(
'
#commentable
'
).
prop
(
'
checked
'
),
'
allowRegister
'
:
$
(
'
#allowRegister
'
).
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