Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo
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
Commits
6c2ebb51
Commit
6c2ebb51
authored
Apr 01, 2013
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复单元测试问题;把 page/data cache max count 从 local.props 移到了 latke.props
parent
67d9c477
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
319 additions
and
270 deletions
+319
-270
core/src/main/java/org/b3log/solo/service/PreferenceMgmtService.java
...in/java/org/b3log/solo/service/PreferenceMgmtService.java
+2
-2
core/src/test/resources/latke.properties
core/src/test/resources/latke.properties
+58
-54
war/bae/src/main/resources/latke.properties
war/bae/src/main/resources/latke.properties
+55
-51
war/bae/src/main/resources/local.properties
war/bae/src/main/resources/local.properties
+46
-50
war/gae/src/main/resources/latke.properties
war/gae/src/main/resources/latke.properties
+54
-50
war/h2/src/main/resources/latke.properties
war/h2/src/main/resources/latke.properties
+54
-50
war/h2/src/main/resources/local.properties
war/h2/src/main/resources/local.properties
+1
-4
war/mysql/src/main/resources/latke.properties
war/mysql/src/main/resources/latke.properties
+5
-1
war/mysql/src/main/resources/local.properties
war/mysql/src/main/resources/local.properties
+1
-5
war/src/main/webapp/js/admin/latkeAdmin.js
war/src/main/webapp/js/admin/latkeAdmin.js
+42
-2
war/src/main/webapp/js/admin/latkeAdmin.min.js
war/src/main/webapp/js/admin/latkeAdmin.min.js
+1
-1
No files found.
core/src/main/java/org/b3log/solo/service/PreferenceMgmtService.java
View file @
6c2ebb51
...
...
@@ -50,7 +50,7 @@ import static org.b3log.solo.model.Preference.*;
* Preference management service.
*
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @version 1.0.0.
5, May 16, 2012
* @version 1.0.0.
6, Apr 1, 2013
* @since 0.4.0
*/
public
final
class
PreferenceMgmtService
{
...
...
@@ -180,7 +180,7 @@ public final class PreferenceMgmtService {
}
}
final
String
maxPageCntStr
=
Latkes
.
get
LocalProperty
(
"cache.maxPageCnt"
);
final
String
maxPageCntStr
=
Latkes
.
get
MaxPageCacheCnt
(
);
if
(
Integer
.
valueOf
(
maxPageCntStr
)
<=
0
)
{
preference
.
put
(
PAGE_CACHE_ENABLED
,
false
);
...
...
core/src/test/resources/latke.properties
View file @
6c2ebb51
#
# Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Description: B3log Latke configurations for test (GAE runtime).
# Version: 1.0.0.1, May 2, 2012
# Author: Liang Ding
#
#### Server ####
# Configures the followings before deploy
serverScheme
=
http
serverHost
=
localhost
serverPort
=
8080
staticServerScheme
=
http
staticServerHost
=
localhost
staticServerPort
=
8080
# Note: The context path and static path should be "" if deploy app on ROOT. For other cases, starts with '/'
# and not ends with '/', for example, /blog
contextPath
=
staticPath=
#### Runtime Environment ####
#runtimeEnv=LOCAL
runtimeEnv
=
GAE
#### Runtime Mode ####
runtimeMode
=
DEVELOPMENT
#runtimeMode=PRODUCTION
#### Cache Implementation ####
# Note: If the runtime environment is LOCAL, the cache will be LOCAL always
#cache=LOCAL
cache
=
GAE
#### User Service Implementation ####
# userService=GAE
userService
=
LOCAL
#### Static resource version ####
#
# Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Description: B3log Latke configurations for test (GAE runtime).
# Version: 1.0.0.2, Apr 1, 2013
# Author: Liang Ding
#
#### Server ####
# Configures the followings before deploy
serverScheme
=
http
serverHost
=
localhost
serverPort
=
8080
staticServerScheme
=
http
staticServerHost
=
localhost
staticServerPort
=
8080
# Note: The context path and static path should be "" if deploy app on ROOT. For other cases, starts with '/'
# and not ends with '/', for example, /blog
contextPath
=
staticPath
=
#### Runtime Environment ####
#runtimeEnv=LOCAL
runtimeEnv
=
GAE
#### Runtime Mode ####
runtimeMode
=
DEVELOPMENT
#runtimeMode=PRODUCTION
#### Cache Implementation ####
# Note: If the runtime environment is LOCAL, the cache will be LOCAL always
#cache=LOCAL
cache
=
GAE
#### User Service Implementation ####
# userService=GAE
userService
=
LOCAL
#### Cache ####
cache.maxPageCnt
=
128
cache.maxDataCnt
=
128
#### Static resource version ####
staticResourceVersion
=
201206280945
\ No newline at end of file
war/bae/src/main/resources/latke.properties
View file @
6c2ebb51
#
# Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Description: B3log Latke configurations. Configures the section "Server" carefully.
# Version: 1.0.0.7, Sep 7, 2012
# Author: Liang Ding
#
#### Server ####
# Configures the followings before deploy
serverScheme
=
http
serverHost
=
localhost
serverPort
=
8080
staticServerScheme
=
http
staticServerHost
=
localhost
staticServerPort
=
8080
# Note: The context path and static path should be "" if deploy app on ROOT. For other cases, starts with '/'
# and not ends with '/', for example, /blog
contextPath
=
staticPath=
#### Runtime Environment ####
runtimeEnv
=
BAE
#### Runtime Mode ####
runtimeMode
=
DEVELOPMENT
#runtimeMode=PRODUCTION
#### Cache Implementation ####
# Note: If the runtime environment is LOCAL, the cache will be 'LOCAL' always
#cache=LOCAL
cache
=
BAE
#### User Service Implementation ####
userService
=
LOCAL
#### Static resource version ####
#
# Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Description: B3log Latke configurations. Configures the section "Server" carefully.
# Version: 1.0.0.8, Apr 1, 2013
# Author: Liang Ding
#
#### Server ####
# Configures the followings before deploy
serverScheme
=
http
serverHost
=
localhost
serverPort
=
8080
staticServerScheme
=
http
staticServerHost
=
localhost
staticServerPort
=
8080
# Note: The context path and static path should be "" if deploy app on ROOT. For other cases, starts with '/'
# and not ends with '/', for example, /blog
contextPath
=
staticPath
=
#### Runtime Environment ####
runtimeEnv
=
BAE
#### Runtime Mode ####
runtimeMode
=
DEVELOPMENT
#runtimeMode=PRODUCTION
#### Cache Implementation ####
# Note: If the runtime environment is LOCAL, the cache will be 'LOCAL' always
#cache=LOCAL
cache
=
BAE
#### User Service Implementation ####
userService
=
LOCAL
#### Cache ####
cache.maxPageCnt
=
128
cache.maxDataCnt
=
128
#### Static resource version ####
staticResourceVersion
=
201211021410
\ No newline at end of file
war/bae/src/main/resources/local.properties
View file @
6c2ebb51
#
# Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Description: B3log Solo local environment configurations. Configures this file
# if B3log Solo runs on a standard Servlet container or Baidu App Engine,
# it is unnecessary to care this file if B3log Solo runs on Google App Engine.
# Version: 1.0.2.2, Jan 23, 2013
# Author: Liang Ding
#
#### Runtime Database (RuntimeDatabase) ####
runtimeDatabase
=
MYSQL
#### JDBC database Configurations ####
jdbc.driver
=
com.mysql.jdbc.Driver
jdbc.URL
=
jdbc:mysql://localhost:3306/b3log?useUnicode=yes&characterEncoding=UTF-8
jdbc.username
=
root
jdbc.password
=
# database connection pool
# Note: If the runtime environment is BAE, the pool will be 'none' always
jdbc.pool=none
# The minConnCnt MUST larger or equal to 3
jdbc.minConnCnt
=
3
jdbc.maxConnCnt
=
10
# Be care to change the transaction isolation
jdbc.transactionIsolation
=
READ_COMMITTED
# The specific table name prefix
jdbc.tablePrefix
=
b3_solo
#### Cache ####
cache.maxPageCnt
=
128
cache.maxDataCnt
=
128
\ No newline at end of file
#
# Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Description: B3log Solo local environment configurations. Configures this file
# if B3log Solo runs on a standard Servlet container or Baidu App Engine,
# it is unnecessary to care this file if B3log Solo runs on Google App Engine.
# Version: 1.0.2.3, Apr 1, 2013
# Author: Liang Ding
#
#### Runtime Database (RuntimeDatabase) ####
runtimeDatabase
=
MYSQL
#### JDBC database Configurations ####
jdbc.driver
=
com.mysql.jdbc.Driver
jdbc.URL
=
jdbc:mysql://localhost:3306/b3log?useUnicode=yes&characterEncoding=UTF-8
jdbc.username
=
root
jdbc.password
=
# database connection pool
# Note: If the runtime environment is BAE, the pool will be 'none' always
jdbc.pool
=
none
# The minConnCnt MUST larger or equal to 3
jdbc.minConnCnt
=
3
jdbc.maxConnCnt
=
10
# Be care to change the transaction isolation
jdbc.transactionIsolation
=
READ_COMMITTED
# The specific table name prefix
jdbc.tablePrefix
=
b3_solo
war/gae/src/main/resources/latke.properties
View file @
6c2ebb51
#
# Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Description: B3log Latke configurations. Configures the section "Server" carefully.
# Version: 1.0.0.6, Aug 14, 2012
# Author: Liang Ding
#
#### Server ####
# Configures the followings before deploy
serverScheme
=
http
serverHost
=
localhost
serverPort
=
8080
staticServerScheme
=
http
staticServerHost
=
localhost
staticServerPort
=
8080
# Note: The context path and static path should be "" if deploy app on ROOT. For other cases, starts with '/'
# and not ends with '/', for example, /blog
contextPath
=
staticPath=
#### Runtime Environment ####
runtimeEnv
=
GAE
#### Runtime Mode ####
runtimeMode
=
DEVELOPMENT
#runtimeMode=PRODUCTION
#### Cache Implementation ####
# Note: If the runtime environment is LOCAL, the cache will be 'LOCAL' always
cache
=
GAE
#### User Service Implementation ####
userService
=
LOCAL
#### Static resource version ####
#
# Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Description: B3log Latke configurations. Configures the section "Server" carefully.
# Version: 1.0.0.7, Apr 1, 2013
# Author: Liang Ding
#
#### Server ####
# Configures the followings before deploy
serverScheme
=
http
serverHost
=
localhost
serverPort
=
8080
staticServerScheme
=
http
staticServerHost
=
localhost
staticServerPort
=
8080
# Note: The context path and static path should be "" if deploy app on ROOT. For other cases, starts with '/'
# and not ends with '/', for example, /blog
contextPath
=
staticPath
=
#### Runtime Environment ####
runtimeEnv
=
GAE
#### Runtime Mode ####
runtimeMode
=
DEVELOPMENT
#runtimeMode=PRODUCTION
#### Cache Implementation ####
# Note: If the runtime environment is LOCAL, the cache will be 'LOCAL' always
cache
=
GAE
#### User Service Implementation ####
userService
=
LOCAL
#### Cache ####
cache.maxPageCnt
=
1024000
cache.maxDataCnt
=
1024000
#### Static resource version ####
staticResourceVersion
=
201211021410
\ No newline at end of file
war/h2/src/main/resources/latke.properties
View file @
6c2ebb51
#
# Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Description: B3log Latke configurations. Configures the section "Server" carefully.
# Version: 1.0.0.6, Aug 14, 2012
# Author: Liang Ding
#
#### Server ####
# Configures the followings before deploy
serverScheme
=
http
serverHost
=
localhost
serverPort
=
8080
staticServerScheme
=
http
staticServerHost
=
localhost
staticServerPort
=
8080
# Note: The context path and static path should be "" if deploy app on ROOT. For other cases, starts with '/'
# and not ends with '/', for example, /blog
contextPath
=
staticPath=
#### Runtime Environment ####
runtimeEnv
=
LOCAL
#### Runtime Mode ####
runtimeMode
=
DEVELOPMENT
#runtimeMode=PRODUCTION
#### Cache Implementation ####
# Note: If the runtime environment is LOCAL, the cache will be 'LOCAL' always
cache
=
LOCAL
#### User Service Implementation ####
userService
=
LOCAL
#### Static resource version ####
#
# Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Description: B3log Latke configurations. Configures the section "Server" carefully.
# Version: 1.0.0.7, Apr 1, 2013
# Author: Liang Ding
#
#### Server ####
# Configures the followings before deploy
serverScheme
=
http
serverHost
=
localhost
serverPort
=
8080
staticServerScheme
=
http
staticServerHost
=
localhost
staticServerPort
=
8080
# Note: The context path and static path should be "" if deploy app on ROOT. For other cases, starts with '/'
# and not ends with '/', for example, /blog
contextPath
=
staticPath
=
#### Runtime Environment ####
runtimeEnv
=
LOCAL
#### Runtime Mode ####
runtimeMode
=
DEVELOPMENT
#runtimeMode=PRODUCTION
#### Cache Implementation ####
# Note: If the runtime environment is LOCAL, the cache will be 'LOCAL' always
cache
=
LOCAL
#### User Service Implementation ####
userService
=
LOCAL
#### Cache ####
cache.maxPageCnt
=
128
cache.maxDataCnt
=
128
#### Static resource version ####
staticResourceVersion
=
201211021410
\ No newline at end of file
war/h2/src/main/resources/local.properties
View file @
6c2ebb51
...
...
@@ -18,7 +18,7 @@
# Description: B3log Solo local environment configurations. Configures this file
# if B3log Solo runs on a standard Servlet container or Baidu App Engine,
# it is unnecessary to care this file if B3log Solo runs on Google App Engine.
# Version: 1.0.2.
3, Jan 23
, 2013
# Version: 1.0.2.
4, Apr 1
, 2013
# Author: Liang Ding
#
...
...
@@ -44,6 +44,3 @@ jdbc.transactionIsolation=READ_COMMITTED
# The specific table name prefix
jdbc.tablePrefix
=
#### Cache ####
cache.maxPageCnt
=
128
cache.maxDataCnt
=
128
war/mysql/src/main/resources/latke.properties
View file @
6c2ebb51
...
...
@@ -16,7 +16,7 @@
#
# Description: B3log Latke configurations. Configures the section "Server" carefully.
# Version: 1.0.0.
6, Aug 14, 2012
# Version: 1.0.0.
7, Apr 1, 2013
# Author: Liang Ding
#
...
...
@@ -47,5 +47,9 @@ cache=LOCAL
#### User Service Implementation ####
userService
=
LOCAL
#### Cache ####
cache.maxPageCnt
=
128
cache.maxDataCnt
=
128
#### Static resource version ####
staticResourceVersion
=
201211021410
\ No newline at end of file
war/mysql/src/main/resources/local.properties
View file @
6c2ebb51
...
...
@@ -18,7 +18,7 @@
# Description: B3log Solo local environment configurations. Configures this file
# if B3log Solo runs on a standard Servlet container or Baidu App Engine,
# it is unnecessary to care this file if B3log Solo runs on Google App Engine.
# Version: 1.0.2.
3, Feb 26
, 2013
# Version: 1.0.2.
4, Apr 1
, 2013
# Author: Liang Ding
#
...
...
@@ -45,7 +45,3 @@ jdbc.transactionIsolation=READ_COMMITTED
# The specific table name prefix
jdbc.tablePrefix
=
#### Cache ####
cache.maxPageCnt
=
128
cache.maxDataCnt
=
128
war/src/main/webapp/js/admin/latkeAdmin.js
View file @
6c2ebb51
...
...
@@ -3258,11 +3258,18 @@ admin.userList = {
userData
[
i
].
isAdmin
=
"
"
+
Label
.
administratorLabel
;
userData
[
i
].
expendRow
=
"
<a href='javascript:void(0)' onclick=
\"
admin.userList.get('
"
+
users
[
i
].
oId
+
"
', '
"
+
users
[
i
].
userRole
+
"
')
\"
>
"
+
Label
.
updateLabel
+
"
</a>
"
;
}
else
{
}
else
if
(
"
defaultRole
"
===
users
[
i
].
userRole
)
{
userData
[
i
].
expendRow
=
"
<a href='javascript:void(0)' onclick=
\"
admin.userList.get('
"
+
users
[
i
].
oId
+
"
', '
"
+
users
[
i
].
userRole
+
"
')
\"
>
"
+
Label
.
updateLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.userList.del('
"
+
users
[
i
].
oId
+
"
', '
"
+
users
[
i
].
userName
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a>
"
;
<a href='javascript:void(0)' onclick=
\"
admin.userList.del('
"
+
users
[
i
].
oId
+
"
', '
"
+
users
[
i
].
userName
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a>
"
+
"
<a href='javascript:void(0)' onclick=
\"
admin.userList.changeRole('
"
+
users
[
i
].
oId
+
"
')
\"
>
"
+
"
ChangeRole
"
+
"
</a>
"
;
userData
[
i
].
isAdmin
=
Label
.
commonUserLabel
;
}
else
{
userData
[
i
].
expendRow
=
"
<a href='javascript:void(0)' onclick=
\"
admin.userList.get('
"
+
users
[
i
].
oId
+
"
', '
"
+
users
[
i
].
userRole
+
"
')
\"
>
"
+
Label
.
updateLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.userList.del('
"
+
users
[
i
].
oId
+
"
', '
"
+
users
[
i
].
userName
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a>
"
+
"
<a href='javascript:void(0)' onclick=
\"
admin.userList.changeRole('
"
+
users
[
i
].
oId
+
"
')
\"
>
"
+
"
ChangeRole
"
+
"
</a>
"
;
userData
[
i
].
isAdmin
=
Label
.
visitorUserLabel
;
}
}
...
...
@@ -3434,6 +3441,39 @@ admin.userList = {
});
}
},
/**
* 修改角色
* @param id
*/
changeRole
:
function
(
id
){
$
.
ajax
({
url
:
latkeConfig
.
servePath
+
"
/console/changeRole/
"
+
id
,
type
:
"
GET
"
,
cache
:
false
,
success
:
function
(
result
,
textStatus
){
$
(
"
#tipMsg
"
).
text
(
result
.
msg
);
if
(
!
result
.
sc
)
{
$
(
"
#loadMsg
"
).
text
(
""
);
return
;
}
var
pageNum
=
admin
.
userList
.
pageInfo
.
currentPage
;
if
(
admin
.
userList
.
pageInfo
.
currentCount
===
1
&&
admin
.
userList
.
pageInfo
.
pageCount
!==
1
&&
admin
.
userList
.
pageInfo
.
currentPage
===
admin
.
userList
.
pageInfo
.
pageCount
)
{
admin
.
userList
.
pageInfo
.
pageCount
--
;
pageNum
=
admin
.
userList
.
pageInfo
.
pageCount
;
}
var
hashList
=
window
.
location
.
hash
.
split
(
"
/
"
);
if
(
pageNum
!==
parseInt
(
hashList
[
hashList
.
length
-
1
]))
{
admin
.
setHashByPage
(
pageNum
);
}
admin
.
userList
.
getList
(
pageNum
);
$
(
"
#loadMsg
"
).
text
(
""
);
}
});
},
/*
* 验证字段
...
...
war/src/main/webapp/js/admin/latkeAdmin.min.js
View file @
6c2ebb51
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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