修改登录状态失效提示信息
This commit is contained in:
@@ -109,7 +109,7 @@
|
|||||||
<script src="${pageContext.request.contextPath}/static/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
|
<script src="${pageContext.request.contextPath}/static/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
|
||||||
<script src="${pageContext.request.contextPath}/static/global/plugins/jquery-validation/1.11.0/jquery.validate.min.js" type="text/javascript"></script>
|
<script src="${pageContext.request.contextPath}/static/global/plugins/jquery-validation/1.11.0/jquery.validate.min.js" type="text/javascript"></script>
|
||||||
<script src="${pageContext.request.contextPath}/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js" type="text/javascript"></script>
|
<script src="${pageContext.request.contextPath}/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js" type="text/javascript"></script>
|
||||||
|
<script src="${pageContext.request.contextPath}/static/global/scripts/jeesite.js" type="text/javascript"></script>
|
||||||
<!-- END CORE PLUGINS -->
|
<!-- END CORE PLUGINS -->
|
||||||
<!-- BEGIN THEME GLOBAL SCRIPTS -->
|
<!-- BEGIN THEME GLOBAL SCRIPTS -->
|
||||||
<script src="${pageContext.request.contextPath}/static/global/scripts/app.min.js" type="text/javascript"></script>
|
<script src="${pageContext.request.contextPath}/static/global/scripts/app.min.js" type="text/javascript"></script>
|
||||||
@@ -139,8 +139,8 @@
|
|||||||
|
|
||||||
// 如果在框架或在对话框中,则弹出提示并跳转到首页
|
// 如果在框架或在对话框中,则弹出提示并跳转到首页
|
||||||
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){
|
||||||
alert("<spring:message code='login_timeout'/>");
|
alertx("<spring:message code='login_timeout'/>");
|
||||||
top.location = "${pageContext.request.contextPath }";
|
window.setTimeout(function () { top.location = "${pageContext.request.contextPath }"; }, 5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ function showTip(mess, type, timeout, lazytime){
|
|||||||
// 显示加载框
|
// 显示加载框
|
||||||
function loading(mess){
|
function loading(mess){
|
||||||
if (mess == undefined || mess == ""){
|
if (mess == undefined || mess == ""){
|
||||||
mess = "正在提交,请稍等...";
|
mess = "OnLoading...";
|
||||||
}
|
}
|
||||||
resetTip();
|
resetTip();
|
||||||
top.$.jBox.tip(mess,'loading',{opacity:0});
|
top.$.jBox.tip(mess,'loading',{opacity:0});
|
||||||
@@ -119,7 +119,7 @@ function loading(mess){
|
|||||||
|
|
||||||
// 警告对话框
|
// 警告对话框
|
||||||
function alertx(mess, closed){
|
function alertx(mess, closed){
|
||||||
top.$.jBox.info(mess, '提示', {closed:function(){
|
top.$.jBox.info(mess, 'Waring', {closed:function(){
|
||||||
if (typeof closed == 'function') {
|
if (typeof closed == 'function') {
|
||||||
closed();
|
closed();
|
||||||
}
|
}
|
||||||
@@ -129,7 +129,7 @@ function alertx(mess, closed){
|
|||||||
|
|
||||||
// 确认对话框
|
// 确认对话框
|
||||||
function confirmx(mess, href, closed){
|
function confirmx(mess, href, closed){
|
||||||
top.$.jBox.confirm(mess,'系统提示',function(v,h,f){
|
top.$.jBox.confirm(mess,'System Prompt',function(v,h,f){
|
||||||
if(v=='ok'){
|
if(v=='ok'){
|
||||||
if (typeof href == 'function') {
|
if (typeof href == 'function') {
|
||||||
href();
|
href();
|
||||||
@@ -152,7 +152,7 @@ function promptx(title, lable, href, closed){
|
|||||||
top.$.jBox("<div class='form-search' style='padding:20px;text-align:center;'>" + lable + ":<input type='text' id='txt' name='txt'/></div>", {
|
top.$.jBox("<div class='form-search' style='padding:20px;text-align:center;'>" + lable + ":<input type='text' id='txt' name='txt'/></div>", {
|
||||||
title: title, submit: function (v, h, f){
|
title: title, submit: function (v, h, f){
|
||||||
if (f.txt == '') {
|
if (f.txt == '') {
|
||||||
top.$.jBox.tip("请输入" + lable + "。", 'error');
|
top.$.jBox.tip("Please input" + lable + "。", 'error');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (typeof href == 'function') {
|
if (typeof href == 'function') {
|
||||||
|
|||||||
Reference in New Issue
Block a user