Commit 11d350f2 authored by mainlove's avatar mainlove

c

parent 2f91496c
......@@ -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.pluginList.toSetting('"+datas[i].oId+"')\"> "+Label.settingLabel+" </a> ";
}
that.tablePagination.updateTablePagination(result.plugins, pageNum, result.pagination);
......@@ -3064,7 +3064,31 @@ 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) {
......@@ -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 初始化或刷新插件
*/
......@@ -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");
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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