Commit e184084d authored by Vanessa's avatar Vanessa

plugin list

parent 6cbc64fc
...@@ -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");
} }
}); });
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -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)) {
......
...@@ -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.pluginList.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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment