https 도메인 접속시 로그인 페이지 이동 오동작 수정
This commit is contained in:
@@ -37,16 +37,14 @@ function isChromeBrowse() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// find Context
|
// find Context
|
||||||
function getContextName()
|
function getContextName() {
|
||||||
{
|
// get context path from pathname (works with both http and https)
|
||||||
// get context
|
var pathname = location.pathname;
|
||||||
var loc = location.href;
|
var pos = pathname.indexOf("/", 1);
|
||||||
var sPos = loc.indexOf("/", 7)
|
|
||||||
var ePos = loc.indexOf("/", sPos+1)
|
|
||||||
|
|
||||||
if (ePos == -1) return "/";
|
if (pos == -1) return pathname.endsWith("/") ? pathname : pathname + "/";
|
||||||
else return loc.substr(sPos, ePos-sPos + 1);
|
else return pathname.substring(0, pos + 1);
|
||||||
}
|
}
|
||||||
// return today : 20081231
|
// return today : 20081231
|
||||||
function getToday()
|
function getToday()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -37,13 +37,12 @@ function isChromeBrowse() {
|
|||||||
|
|
||||||
// find Context
|
// find Context
|
||||||
function getContextName() {
|
function getContextName() {
|
||||||
// get context
|
// get context path from pathname (works with both http and https)
|
||||||
var loc = location.href;
|
var pathname = location.pathname;
|
||||||
var sPos = loc.indexOf("/", 7)
|
var pos = pathname.indexOf("/", 1);
|
||||||
var ePos = loc.indexOf("/", sPos + 1)
|
|
||||||
|
|
||||||
if (ePos == -1) return "/";
|
if (pos == -1) return pathname.endsWith("/") ? pathname : pathname + "/";
|
||||||
else return loc.substr(sPos, ePos - sPos + 1);
|
else return pathname.substring(0, pos + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// return today : 20081231
|
// return today : 20081231
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ jQuery.showModalDialog = function(options) { $().showModalDialog(options); };
|
|||||||
var originalError = options.error;
|
var originalError = options.error;
|
||||||
options.error = function(xhr, status, error) {
|
options.error = function(xhr, status, error) {
|
||||||
if(xhr.status === 401) {
|
if(xhr.status === 401) {
|
||||||
var location = getContextName() + '/';
|
var location = getContextName();
|
||||||
comloadError(xhr, status, error, location);
|
comloadError(xhr, status, error, location);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,16 +37,14 @@ function isChromeBrowse() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// find Context
|
// find Context
|
||||||
function getContextName()
|
function getContextName() {
|
||||||
{
|
// get context path from pathname (works with both http and https)
|
||||||
// get context
|
var pathname = location.pathname;
|
||||||
var loc = location.href;
|
var pos = pathname.indexOf("/", 1);
|
||||||
var sPos = loc.indexOf("/", 7)
|
|
||||||
var ePos = loc.indexOf("/", sPos+1)
|
|
||||||
|
|
||||||
if (ePos == -1) return "/";
|
if (pos == -1) return pathname.endsWith("/") ? pathname : pathname + "/";
|
||||||
else return loc.substr(sPos, ePos-sPos + 1);
|
else return pathname.substring(0, pos + 1);
|
||||||
}
|
}
|
||||||
// return today : 20081231
|
// return today : 20081231
|
||||||
function getToday()
|
function getToday()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -37,15 +37,13 @@ function isChromeBrowse() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// find Context
|
// find Context
|
||||||
function getContextName()
|
function getContextName() {
|
||||||
{
|
// get context path from pathname (works with both http and https)
|
||||||
// get context
|
var pathname = location.pathname;
|
||||||
var loc = location.href;
|
var pos = pathname.indexOf("/", 1);
|
||||||
var sPos = loc.indexOf("/", 7)
|
|
||||||
var ePos = loc.indexOf("/", sPos+1)
|
|
||||||
|
|
||||||
if (ePos == -1) return "/";
|
if (pos == -1) return pathname.endsWith("/") ? pathname : pathname + "/";
|
||||||
else return loc.substr(sPos, ePos-sPos + 1);
|
else return pathname.substring(0, pos + 1);
|
||||||
}
|
}
|
||||||
// return today : 20081231
|
// return today : 20081231
|
||||||
function getToday()
|
function getToday()
|
||||||
|
|||||||
Reference in New Issue
Block a user