Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
b6e71f20
Commit
b6e71f20
authored
Jul 25, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Getits対応
parent
822c73cc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
17 deletions
+31
-17
abvw/common/js/avweb.js
+5
-0
abvw/common/js/common.js
+9
-10
abvw/js/contentview_General.js
+12
-0
abvw/js/login.js
+5
-7
No files found.
abvw/common/js/avweb.js
View file @
b6e71f20
...
@@ -824,6 +824,10 @@ function avwClearError() {
...
@@ -824,6 +824,10 @@ function avwClearError() {
/* ブラウザunload時に警告メッセージの出力設定を行う関数 */
/* ブラウザunload時に警告メッセージの出力設定を行う関数 */
function
avwSetLogoutNortice
()
{
function
avwSetLogoutNortice
()
{
window
.
onbeforeunload
=
function
(
event
)
{
window
.
onbeforeunload
=
function
(
event
)
{
if
(
ClientData
.
isGetitsMode
()
==
true
){
COMMON
.
SetEndLog
(
contentID
);
COMMON
.
RegisterLog
();
}
else
{
// メッセージ表示
// メッセージ表示
// FFでは、https://bugzilla.mozilla.org/show_bug.cgi?id=588292 によりメッセージが出力されない
// FFでは、https://bugzilla.mozilla.org/show_bug.cgi?id=588292 によりメッセージが出力されない
var
message
=
i18nText
(
'sysInfoWithoutLogout'
);
var
message
=
i18nText
(
'sysInfoWithoutLogout'
);
...
@@ -832,6 +836,7 @@ function avwSetLogoutNortice() {
...
@@ -832,6 +836,7 @@ function avwSetLogoutNortice() {
e
.
returnValue
=
message
;
e
.
returnValue
=
message
;
}
}
return
message
;
return
message
;
}
};
};
};
};
/* 警告メッセージを出力しないでページ遷移を行う関数 */
/* 警告メッセージを出力しないでページ遷移を行う関数 */
...
...
abvw/common/js/common.js
View file @
b6e71f20
...
@@ -550,14 +550,6 @@ COMMON.operateData = function(args, strKey, returnDefaultData) {
...
@@ -550,14 +550,6 @@ COMMON.operateData = function(args, strKey, returnDefaultData) {
SessionStorageUtils
.
set
(
strKey
,
JSON
.
stringify
(
LocalStorageUtils
.
get
(
strKey
)));
SessionStorageUtils
.
set
(
strKey
,
JSON
.
stringify
(
LocalStorageUtils
.
get
(
strKey
)));
return
JSON
.
parse
(
SessionStorageUtils
.
get
(
strKey
));
return
JSON
.
parse
(
SessionStorageUtils
.
get
(
strKey
));
}
}
// SessionStorageUtils.set(strKey, JSON.stringify(LocalStorageUtils.get(strKey)));
// if (SessionStorageUtils.get(strKey) != 'undefined'
// && SessionStorageUtils.get(strKey) != undefined
// && SessionStorageUtils.get(strKey) != ''
// && SessionStorageUtils.get(strKey) != null
// && SessionStorageUtils.get(strKey) != 'null') {
// return JSON.parse(SessionStorageUtils.get(strKey));
// }
return
returnDefaultData
;
return
returnDefaultData
;
}
}
}
}
...
@@ -1572,9 +1564,16 @@ var ClientData = {
...
@@ -1572,9 +1564,16 @@ var ClientData = {
isGetitsMode
:
function
(
data
)
{
isGetitsMode
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
if
(
arguments
.
length
>
0
)
{
SessionStorageUtils
.
set
(
Keys
.
isGetitsMode
,
data
);
SessionStorageUtils
.
set
(
Keys
.
isGetitsMode
,
JSON
.
stringify
(
data
)
);
}
else
{
}
else
{
return
SessionStorageUtils
.
get
(
Keys
.
isGetitsMode
);
if
(
SessionStorageUtils
.
get
(
Keys
.
isGetitsMode
)
!=
'undefined'
&&
SessionStorageUtils
.
get
(
Keys
.
isGetitsMode
)
!=
undefined
&&
SessionStorageUtils
.
get
(
Keys
.
isGetitsMode
)
!=
''
&&
SessionStorageUtils
.
get
(
Keys
.
isGetitsMode
)
!=
null
&&
SessionStorageUtils
.
get
(
Keys
.
isGetitsMode
)
!=
'null'
)
{
return
JSON
.
parse
(
SessionStorageUtils
.
get
(
Keys
.
isGetitsMode
));
}
return
false
;
}
}
},
},
...
...
abvw/js/contentview_General.js
View file @
b6e71f20
...
@@ -502,6 +502,18 @@ function enableAllControl() {
...
@@ -502,6 +502,18 @@ function enableAllControl() {
}
}
}
}
}
}
if
(
ClientData
.
isGetitsMode
()
==
true
){
$
(
'#imgHome'
).
unbind
(
'click'
);
$
(
'#imgHome'
).
removeClass
();
$
(
'#imgHome'
).
addClass
(
'home_off'
);
/* back button */
$
(
'#imgBack'
).
unbind
(
'click'
);
$
(
'#imgBack'
).
removeClass
();
$
(
'#imgBack'
).
addClass
(
'back_off'
);
}
checkExistNextPrePage
();
checkExistNextPrePage
();
};
};
...
...
abvw/js/login.js
View file @
b6e71f20
...
@@ -517,11 +517,6 @@ LOGIN.getServiceOptionList = function(){
...
@@ -517,11 +517,6 @@ LOGIN.getServiceOptionList = function(){
});
});
};
};
//function OpenChangePassword() {
// //$("#dlgChangePassword").dialog("open");
// //$(".ui-dialog-titlebar").hide();
//};
LOGIN
.
loginWhenClickEnter
=
function
(
e
){
LOGIN
.
loginWhenClickEnter
=
function
(
e
){
var
code
=
(
e
.
keyCode
?
e
.
keyCode
:
e
.
which
);
var
code
=
(
e
.
keyCode
?
e
.
keyCode
:
e
.
which
);
if
(
code
==
13
)
{
//Enter keycode
if
(
code
==
13
)
{
//Enter keycode
...
@@ -532,8 +527,8 @@ LOGIN.loginWhenClickEnter = function(e){
...
@@ -532,8 +527,8 @@ LOGIN.loginWhenClickEnter = function(e){
$
(
document
).
ready
(
function
(
e
)
{
$
(
document
).
ready
(
function
(
e
)
{
//セッションストレージクリア
//セッションストレージクリア
//
SessionStorageUtils.clear();
SessionStorageUtils
.
clear
();
//
avwUserSessionObj = null;
avwUserSessionObj
=
null
;
// create new session
// create new session
avwCreateUserSession
();
avwCreateUserSession
();
initi18n
();
initi18n
();
...
@@ -573,6 +568,9 @@ $(document).ready(function (e) {
...
@@ -573,6 +568,9 @@ $(document).ready(function (e) {
if
(
ClientData
.
isGetitsMode
()
==
true
){
if
(
ClientData
.
isGetitsMode
()
==
true
){
//念のため前回までの閲覧ログは削除
ClientData
.
ContentLogData
([]);
$
(
'#anonymous'
).
show
();
$
(
'#anonymous'
).
show
();
setTimeout
(
setTimeout
(
function
()
{
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment