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
e184084d
Commit
e184084d
authored
Jan 24, 2013
by
Vanessa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plugin list
parent
6cbc64fc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
33 deletions
+32
-33
war/src/main/webapp/js/admin/latkeAdmin.js
war/src/main/webapp/js/admin/latkeAdmin.js
+3
-7
war/src/main/webapp/js/admin/latkeAdmin.min.js
war/src/main/webapp/js/admin/latkeAdmin.min.js
+1
-1
war/src/main/webapp/js/admin/plugin.js
war/src/main/webapp/js/admin/plugin.js
+1
-23
war/src/main/webapp/js/admin/pluginList.js
war/src/main/webapp/js/admin/pluginList.js
+27
-2
No files found.
war/src/main/webapp/js/admin/latkeAdmin.js
View file @
e184084d
...
@@ -3633,14 +3633,10 @@ admin.plugin = {
...
@@ -3633,14 +3633,10 @@ admin.plugin = {
success
:
function
(
result
,
textStatus
){
success
:
function
(
result
,
textStatus
){
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
);
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
);
$
(
"
#tipMsg
"
).
text
(
result
.
msg
);
$
(
"
#tipMsg
"
).
text
(
result
.
msg
);
if
(
!
result
.
sc
)
{
$
(
"
#loadMsg
"
).
text
(
""
);
$
(
"
#PluginSetting
"
).
html
(
result
);
return
;
}
//where to put the id?
$
(
"
#PluginSetting
"
).
dialog
(
"
open
"
);
$
(
"
#loadMsg
"
).
text
(
""
);
$
(
"
#loadMsg
"
).
text
(
""
);
$
(
"
#PluginSetting
"
).
dialog
(
"
open
"
);
}
}
});
});
...
...
war/src/main/webapp/js/admin/latkeAdmin.min.js
View file @
e184084d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
war/src/main/webapp/js/admin/plugin.js
View file @
e184084d
...
@@ -39,28 +39,6 @@ admin.plugin = {
...
@@ -39,28 +39,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 初始化或刷新插件
* 根据当前 hash 初始化或刷新插件
*/
*/
...
@@ -72,7 +50,7 @@ admin.plugin = {
...
@@ -72,7 +50,7 @@ admin.plugin = {
isCurrentPlugin
=
false
;
isCurrentPlugin
=
false
;
// 根据当前 hash 和插件 path 判别是非为当前插件
// 根据当前 hash 和插件 path 判别是非为当前插件
if
(
data
.
index
&&
window
.
location
.
hash
.
indexOf
(
data
.
hash
)
>
-
1
)
{
if
(
data
.
index
&&
window
.
location
.
hash
.
indexOf
(
data
.
hash
)
>
-
1
)
{
isCurrentPlugin
=
true
;
isCurrentPlugin
=
true
;
}
else
if
(
data
.
path
.
replace
(
"
/
"
,
"
#
"
)
===
window
.
location
.
hash
||
}
else
if
(
data
.
path
.
replace
(
"
/
"
,
"
#
"
)
===
window
.
location
.
hash
||
(
window
.
location
.
hash
===
"
#main
"
&&
data
.
path
.
indexOf
(
"
/main/panel
"
)
>
-
1
))
{
(
window
.
location
.
hash
===
"
#main
"
&&
data
.
path
.
indexOf
(
"
/main/panel
"
)
>
-
1
))
{
...
...
war/src/main/webapp/js/admin/pluginList.js
View file @
e184084d
...
@@ -92,7 +92,7 @@ admin.pluginList = {
...
@@ -92,7 +92,7 @@ admin.pluginList = {
}
}
datas
[
i
].
expendRow
+=
"
</a>
"
;
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
);
that
.
tablePagination
.
updateTablePagination
(
result
.
plugins
,
pageNum
,
result
.
pagination
);
...
@@ -103,7 +103,32 @@ admin.pluginList = {
...
@@ -103,7 +103,32 @@ admin.pluginList = {
},
},
toSetting
:
function
(
pluginId
){
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
:
190
,
"
modal
"
:
true
,
"
hideFooter
"
:
true
});
$
(
"
#PluginSetting
"
).
dialog
(
"
open
"
);
$
(
"
#loadMsg
"
).
text
(
""
);
}
});
},
},
changeStatus
:
function
(
pluginId
,
status
)
{
changeStatus
:
function
(
pluginId
,
status
)
{
...
...
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