diff --git a/cachecloud-open-web/src/main/webapp/WEB-INF/jsp/manage/appOps/appInstance.jsp b/cachecloud-open-web/src/main/webapp/WEB-INF/jsp/manage/appOps/appInstance.jsp
index 1f783ec4..776eab5f 100644
--- a/cachecloud-open-web/src/main/webapp/WEB-INF/jsp/manage/appOps/appInstance.jsp
+++ b/cachecloud-open-web/src/main/webapp/WEB-INF/jsp/manage/appOps/appInstance.jsp
@@ -59,7 +59,7 @@
alert("执行成功!");
$("#redisClusterFailOverInfo" + instanceId).html("
Success!执行成功,应用的拓扑结构要1分钟之后生效,请耐心等待
");
var targetId = "#redisClusterFailOverModal" + instanceId;
- setTimeout("$('" + targetId +"').modal('hide');reloadAppInstancesPage("+appId+");",1000);
+ setTimeout("$('" + targetId +"').modal('hide');window.location.reload();",1000);
}else{
redisClusterFailOverBtn.disabled = false;
$("#redisClusterFailOverInfo" + instanceId).html("Error!执行失败,请查找原因!
");
@@ -89,7 +89,7 @@
alert("执行成功!");
$("#redisClusterAddSlaveInfo" + instanceId).html("Success!添加成功!
");
var targetId = "#redisClusterAddSlaveModal" + instanceId;
- setTimeout("$('" + targetId +"').modal('hide');reloadAppInstancesPage("+appId+");",1000);
+ setTimeout("$('" + targetId +"').modal('hide');window.location.reload();",1000);
}else{
redisClusterAddSlaveBtn.disabled = false;
$("#redisClusterAddSlaveInfo" + instanceId).html("Error!执行失败,请查找原因!
");
@@ -119,7 +119,7 @@
alert("执行成功!");
$("#redisSentinelAddSlaveInfo" + instanceId).html("Success!添加成功!
");
var targetId = "#redisSentinelAddSlaveModal" + instanceId;
- setTimeout("$('" + targetId +"').modal('hide');reloadAppInstancesPage("+appId+");",1000);
+ setTimeout("$('" + targetId +"').modal('hide');window.location.reload();",1000);
}else{
redisSentinelAddSlaveBtn.disabled = false;
$("#redisSentinelAddSlaveInfo" + instanceId).html("Error!执行失败,请查找原因!
");
@@ -142,7 +142,7 @@
alert("执行成功!");
$("#redisSentinelFailOverInfo").html("Success!执行成功,应用的拓扑结构要1分钟之后生效,请耐心等待
");
var targetId = "#redisSentinelFailOverModal";
- setTimeout("$('" + targetId +"').modal('hide');reloadAppInstancesPage("+appId+");",1000);
+ setTimeout("$('" + targetId +"').modal('hide');window.location.reload();",1000);
}else{
redisSentinelFailOverBtn.disabled = false;
$("#redisSentinelFailOverInfo").html("Error!执行失败,请查找原因!
");
@@ -171,7 +171,7 @@
}
$("#redisAddFailSlotsMasterInfo" + instanceId).html("Success!执行成功,应用的拓扑结构要1分钟之后生效,请耐心等待
");
var targetId = "#redisAddFailSlotsMasterModal" + instanceId;
- setTimeout("$('" + targetId +"').modal('hide');reloadAppInstancesPage("+appId+");",1000);
+ setTimeout("$('" + targetId +"').modal('hide');window.location.reload();",1000);
} else{
redisAddFailSlotsMasterBtn.disabled = false;
$("#redisAddFailSlotsMasterInfo" + instanceId).html("Error!执行失败,请查找原因!
");
@@ -200,7 +200,7 @@
alert("执行成功!");
$("#redisAddSentinelInfo").html("Success!添加成功!
");
var targetId = "#redisAddSentinelModal";
- setTimeout("$('" + targetId +"').modal('hide');reloadAppInstancesPage("+appId+");",1000);
+ setTimeout("$('" + targetId +"').modal('hide');window.location.reload();",1000);
}else{
redisAddSentinelBtn.disabled = false;
$("#redisAddSentinelInfo").html("Error!执行失败,请查找原因!
");
@@ -209,11 +209,6 @@
);
}
- //重新加载appDetail页面
- function reloadAppInstancesPage(appId){
- location.href = "/manage/app/index.do?appId=" + appId + "#app_ops_instance";
- }
-