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
11d350f2
Commit
11d350f2
authored
Jan 24, 2013
by
mainlove
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c
parent
2f91496c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
30 deletions
+34
-30
war/src/main/webapp/js/admin/latkeAdmin.js
war/src/main/webapp/js/admin/latkeAdmin.js
+33
-29
war/src/main/webapp/js/admin/latkeAdmin.min.js
war/src/main/webapp/js/admin/latkeAdmin.min.js
+1
-1
No files found.
war/src/main/webapp/js/admin/latkeAdmin.js
View file @
11d350f2
...
...
@@ -3053,7 +3053,7 @@ admin.pluginList = {
}
datas
[
i
].
expendRow
+=
"
</a>
"
;
datas
[
i
].
expendRow
+=
"
<a href='javascript:void(0)' onclick=
\"
admin.plugin.toSetting('
"
+
datas
[
i
].
oId
+
"
')
\"
>
"
+
Label
.
settingLabel
+
"
</a>
"
;
datas
[
i
].
expendRow
+=
"
<a href='javascript:void(0)' onclick=
\"
admin.plugin
List
.toSetting('
"
+
datas
[
i
].
oId
+
"
')
\"
>
"
+
Label
.
settingLabel
+
"
</a>
"
;
}
that
.
tablePagination
.
updateTablePagination
(
result
.
plugins
,
pageNum
,
result
.
pagination
);
...
...
@@ -3062,11 +3062,35 @@ admin.pluginList = {
}
});
},
toSetting
:
function
(
pluginId
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
);
var
requestJSONObject
=
{
"
oId
"
:
pluginId
};
$
.
ajax
({
url
:
latkeConfig
.
servePath
+
"
/console/plugin/toSetting
"
,
type
:
"
POST
"
,
cache
:
false
,
data
:
JSON
.
stringify
(
requestJSONObject
),
success
:
function
(
result
,
textStatus
){
$
(
"
#tipMsg
"
).
text
(
result
.
msg
);
$
(
"
#PluginSetting
"
).
html
(
result
);
$
(
"
#PluginSetting
"
).
dialog
({
width
:
700
,
height
:
400
,
"
modal
"
:
true
,
"
hideFooter
"
:
true
});
$
(
"
#PluginSetting
"
).
dialog
(
"
open
"
);
$
(
"
#loadMsg
"
).
text
(
""
);
}
});
},
changeStatus
:
function
(
pluginId
,
status
)
{
if
(
status
===
"
ENABLED
"
)
{
status
=
"
DISABLED
"
;
...
...
@@ -3109,7 +3133,8 @@ admin.register["plugin-list"] = {
"
refresh
"
:
function
()
{
$
(
"
#loadMsg
"
).
text
(
""
);
}
}
/*
}
/*
* Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -3620,28 +3645,6 @@ admin.plugin = {
}
},
toSetting
:
function
(
pluginId
){
var
requestJSONObject
=
{
"
oId
"
:
pluginId
};
$
.
ajax
({
url
:
latkeConfig
.
servePath
+
"
/console/plugin/toSetting
"
,
type
:
"
POST
"
,
cache
:
false
,
data
:
JSON
.
stringify
(
requestJSONObject
),
success
:
function
(
result
,
textStatus
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
);
$
(
"
#tipMsg
"
).
text
(
result
.
msg
);
$
(
"
#PluginSetting
"
).
html
(
result
);
$
(
"
#loadMsg
"
).
text
(
""
);
$
(
"
#PluginSetting
"
).
dialog
(
"
open
"
);
}
});
},
/*
* 根据当前 hash 初始化或刷新插件
*/
...
...
@@ -3653,7 +3656,7 @@ admin.plugin = {
isCurrentPlugin
=
false
;
// 根据当前 hash 和插件 path 判别是非为当前插件
if
(
data
.
index
&&
window
.
location
.
hash
.
indexOf
(
data
.
hash
)
>
-
1
)
{
if
(
data
.
index
&&
window
.
location
.
hash
.
indexOf
(
data
.
hash
)
>
-
1
)
{
isCurrentPlugin
=
true
;
}
else
if
(
data
.
path
.
replace
(
"
/
"
,
"
#
"
)
===
window
.
location
.
hash
||
(
window
.
location
.
hash
===
"
#main
"
&&
data
.
path
.
indexOf
(
"
/main/panel
"
)
>
-
1
))
{
...
...
@@ -3734,7 +3737,8 @@ admin.plugin = {
break
;
}
}
};
/*
};
/*
* Copyright (c) 2009, 2010, 2011, 2012, 2013, B3log Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
...
...
war/src/main/webapp/js/admin/latkeAdmin.min.js
View file @
11d350f2
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