系统登录超时提示不需要confirm,只alert提示即可。
This commit is contained in:
@@ -192,14 +192,26 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 如果在框架或在对话框中,则弹出提示并跳转到首页
|
// 如果在框架或在对话框中,则弹出提示并跳转到首页
|
||||||
if(self.frameElement && self.frameElement.tagName == "IFRAME" || $('#left').length > 0 || $('.jbox').length > 0){
|
/* if(self.frameElement && self.frameElement.tagName == "IFRAME" || $('#left').length > 0 || $('.jbox').length > 0){
|
||||||
top.$.jBox.alert("<spring:message code='login_timeout'/>","<spring:message code='info'/>",function(v,h,f){
|
top.$.jBox.confirm("<spring:message code='login_timeout'/>","<spring:message code='info'/>",function(v,h,f){
|
||||||
top.location = "${pageContext.request.contextPath }";
|
|
||||||
|
if(v=="ok"){
|
||||||
|
top.location = "${pageContext.request.contextPath }";
|
||||||
|
}else{
|
||||||
|
top.location = "${pageContext.request.contextPath }";
|
||||||
|
}
|
||||||
},{buttonsFocus:1});
|
},{buttonsFocus:1});
|
||||||
top.$('.jbox-body .jbox-icon').css('top','55px');
|
top.$('.jbox-body .jbox-icon').css('top','55px');
|
||||||
|
} */
|
||||||
|
if(self.frameElement && self.frameElement.tagName == "IFRAME" || $('#left').length > 0 || $('.jbox').length > 0){
|
||||||
|
top.$.jBox.prompt("<spring:message code='login_timeout'/>", "<spring:message code='info'/>", 'info', {
|
||||||
|
closed: function () {
|
||||||
|
top.location = "${pageContext.request.contextPath }";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
top.$('.jbox-body .jbox-icon').css('top','55px');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|||||||
Reference in New Issue
Block a user