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
d7a9054c
Commit
d7a9054c
authored
Dec 07, 2012
by
Motohisa Nakano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20121207-1
parent
b9c45397
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
79 additions
and
27 deletions
+79
-27
abvw/common/json/lang/lang-en.json
+3
-3
abvw/common/json/lang/lang-ja.json
+1
-1
abvw/common/json/lang/lang-ko.json
+1
-1
abvw/contentsearch.html
+1
-1
abvw/history.html
+1
-1
abvw/home.html
+1
-1
abvw/js/bookmark.js
+48
-8
abvw/js/contentsearch.js
+2
-0
abvw/js/contentview.js
+6
-2
abvw/js/header.js
+0
-1
abvw/js/history.js
+3
-1
abvw/js/home.js
+9
-6
abvw/js/settings.js
+3
-1
No files found.
abvw/common/json/lang/lang-en.json
View file @
d7a9054c
...
@@ -48,8 +48,8 @@
...
@@ -48,8 +48,8 @@
"dspTitleNm"
:
"Title"
,
"dspTitleNm"
:
"Title"
,
"dspTitleNmKn"
:
"Title(Kana)"
,
"dspTitleNmKn"
:
"Title(Kana)"
,
"txtPubDt"
:
"Released Date"
,
"txtPubDt"
:
"Released Date"
,
"txtRecordNum"
:
"
"
,
"txtRecordNum"
:
""
,
"txtRecordTotal"
:
"
"
,
"txtRecordTotal"
:
""
,
"dspViewMore"
:
">> Next {0} contents"
,
"dspViewMore"
:
">> Next {0} contents"
,
"txtGen"
:
"Genre"
,
"txtGen"
:
"Genre"
,
"txtGr"
:
"Group"
,
"txtGr"
:
"Group"
,
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"Logout"
,
"dspBkCancel"
:
"Logout"
,
"txtSearchResult"
:
"Result"
,
"txtSearchResult"
:
"Result"
,
"dspHome"
:
"Home"
,
"dspHome"
:
"Home"
,
"txtLoginUser"
:
"(Ver.2012120
6-3
)User:"
,
"txtLoginUser"
:
"(Ver.2012120
7-1
)User:"
,
"txtAll"
:
"All"
,
"txtAll"
:
"All"
,
"txtMkgSize"
:
"Size"
,
"txtMkgSize"
:
"Size"
,
"txtMkgS"
:
"S"
,
"txtMkgS"
:
"S"
,
...
...
abvw/common/json/lang/lang-ja.json
View file @
d7a9054c
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"バックアップせずにログアウト"
,
"dspBkCancel"
:
"バックアップせずにログアウト"
,
"txtSearchResult"
:
"検索結果"
,
"txtSearchResult"
:
"検索結果"
,
"dspHome"
:
"ホーム"
,
"dspHome"
:
"ホーム"
,
"txtLoginUser"
:
"(Ver.2012120
6-3
)ログイン中:"
,
"txtLoginUser"
:
"(Ver.2012120
7-1
)ログイン中:"
,
"txtAll"
:
"すべて"
,
"txtAll"
:
"すべて"
,
"txtMkgSize"
:
"太さ"
,
"txtMkgSize"
:
"太さ"
,
"txtMkgS"
:
"小"
,
"txtMkgS"
:
"小"
,
...
...
abvw/common/json/lang/lang-ko.json
View file @
d7a9054c
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
"dspBkCancel"
:
"로그아웃"
,
"dspBkCancel"
:
"로그아웃"
,
"txtSearchResult"
:
"검색 결과"
,
"txtSearchResult"
:
"검색 결과"
,
"dspHome"
:
"홈"
,
"dspHome"
:
"홈"
,
"txtLoginUser"
:
"(Ver.2012120
6-3
)로그인 중:"
,
"txtLoginUser"
:
"(Ver.2012120
7-1
)로그인 중:"
,
"txtAll"
:
"전체"
,
"txtAll"
:
"전체"
,
"txtMkgSize"
:
"두께"
,
"txtMkgSize"
:
"두께"
,
"txtMkgS"
:
"소"
,
"txtMkgS"
:
"소"
,
...
...
abvw/contentsearch.html
View file @
d7a9054c
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
</style>
</style>
<!-- script definition -->
<!-- script definition -->
<script>
<script>
LockScreen
();
//
LockScreen();
</script>
</script>
</head>
</head>
<body>
<body>
...
...
abvw/history.html
View file @
d7a9054c
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
</style>
</style>
<!-- script definition -->
<!-- script definition -->
<script>
<script>
LockScreen
();
//
LockScreen();
</script>
</script>
</head>
</head>
<body>
<body>
...
...
abvw/home.html
View file @
d7a9054c
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</style>
</style>
<!-- script definition -->
<!-- script definition -->
<script>
<script>
LockScreen
();
//
LockScreen();
</script>
</script>
</head>
</head>
...
...
abvw/js/bookmark.js
View file @
d7a9054c
...
@@ -28,6 +28,8 @@ $(document).ready(function () {
...
@@ -28,6 +28,8 @@ $(document).ready(function () {
if
(
!
avwCheckLogin
(
ScreenIds
.
Login
))
return
;
if
(
!
avwCheckLogin
(
ScreenIds
.
Login
))
return
;
LockScreen
();
document
.
title
=
i18nText
(
'dspShiori'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
document
.
title
=
i18nText
(
'dspShiori'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
// Set bookmark screen
// Set bookmark screen
...
@@ -258,14 +260,18 @@ function ShowBookmark() {
...
@@ -258,14 +260,18 @@ function ShowBookmark() {
hasMemo
=
true
;
hasMemo
=
true
;
}
}
}
}
if
(
IsErrorPage
(
contentid
,
pageNo
))
{
// if (IsErrorPage(contentid, pageNo)) {
insertRowError
(
contentid
,
htmlEncode
(
ClientData
.
BookMarkData
()[
nIndex
].
contentTitle
),
pageNo
);
// insertRowError(contentid, htmlEncode(ClientData.BookMarkData()[nIndex].contentTitle), pageNo);
}
// }
else
{
// else {
// callApi.execute(contentid, ClientData.userInfo_sid(), pageNo, hasMemo, hasMarking, htmlEncode(ClientData.BookMarkData()[nIndex].contentTitle), nIndex);
// }
callApi
.
execute
(
contentid
,
ClientData
.
userInfo_sid
(),
pageNo
,
hasMemo
,
hasMarking
,
htmlEncode
(
ClientData
.
BookMarkData
()[
nIndex
].
contentTitle
),
nIndex
);
callApi
.
execute
(
contentid
,
ClientData
.
userInfo_sid
(),
pageNo
,
hasMemo
,
hasMarking
,
htmlEncode
(
ClientData
.
BookMarkData
()[
nIndex
].
contentTitle
),
nIndex
);
}
}
}
$
(
"a[name='dspRead']"
).
unbind
(
'click'
);
$
(
"a[name='dspRead']"
).
click
(
dspRead_Click
);
}
}
// Hide all sorting symbol
// Hide all sorting symbol
function
HideSorting
()
{
function
HideSorting
()
{
...
@@ -484,6 +490,20 @@ var callApi = {
...
@@ -484,6 +490,20 @@ var callApi = {
this
.
pageNo
=
pageNo
;
this
.
pageNo
=
pageNo
;
avwCmsApiSync
(
ClientData
.
userInfo_accountPath
(),
"webContentPage"
,
"GET"
,
{
contentId
:
contentid
,
sid
:
sid
,
pageNos
:
pageNo
,
thumbnailFlg
:
1
},
avwCmsApiSync
(
ClientData
.
userInfo_accountPath
(),
"webContentPage"
,
"GET"
,
{
contentId
:
contentid
,
sid
:
sid
,
pageNos
:
pageNo
,
thumbnailFlg
:
1
},
function
(
data
)
{
function
(
data
)
{
if
(
data
.
pages
.
length
==
0
)
{
// Page does not exist
AddErrorPage
(
contentid
,
pageNo
);
insertRowError
(
contentid
,
htmlEncode
(
contentTitle
),
pageNo
);
}
else
{
// Update local title to be equal to server
UpdateBookmark
(
contentid
,
pageNo
,
data
.
contentTitle
,
data
.
contentTitleKana
);
contentTitle
=
data
.
contentTitle
;
// Insert to grid
insertRow
(
contentid
,
"data:image/jpeg;base64,"
+
data
.
pages
[
0
].
pageThumbnail
,
htmlEncode
(
contentTitle
),
data
.
pages
[
0
].
pageText
,
pageNo
,
hasMemo
,
hasMarking
,
index
);
}
/*
// Update local title to be equal to server
// Update local title to be equal to server
UpdateBookmark(contentid, pageNo, data.contentTitle, data.contentTitleKana);
UpdateBookmark(contentid, pageNo, data.contentTitle, data.contentTitleKana);
contentTitle = data.contentTitle;
contentTitle = data.contentTitle;
...
@@ -501,6 +521,7 @@ var callApi = {
...
@@ -501,6 +521,7 @@ var callApi = {
}
}
$("a[name='dspRead']").unbind('click');
$("a[name='dspRead']").unbind('click');
$("a[name='dspRead']").click(dspRead_Click);
$("a[name='dspRead']").click(dspRead_Click);
*/
},
},
null
null
);
);
...
@@ -717,7 +738,7 @@ $(function () {
...
@@ -717,7 +738,7 @@ $(function () {
$
(
"#dspTitleNmKn_Seperate"
).
show
();
$
(
"#dspTitleNmKn_Seperate"
).
show
();
}
}
LockScreen
();
// LockScreen();
});
});
...
@@ -748,6 +769,22 @@ function IsErrorContent(strContentId) {
...
@@ -748,6 +769,22 @@ function IsErrorContent(strContentId) {
}
}
return
isError
;
return
isError
;
}
}
/*
Check a content is checked + ok
*/
function
IsOKCheckedContent
(
strContentId
)
{
var
isOK
=
false
;
for
(
var
nIndex
=
0
;
nIndex
<
collection_contents
.
length
;
nIndex
++
)
{
if
(
strContentId
==
collection_contents
[
nIndex
].
contentid
)
{
isOK
=
true
;
break
;
}
}
return
isOK
;
}
/*
/*
Check a page is error or not (error pages were checked before)
Check a page is error or not (error pages were checked before)
*/
*/
...
@@ -907,9 +944,11 @@ function SyncContent() {
...
@@ -907,9 +944,11 @@ function SyncContent() {
// Check existence of content [start]
// Check existence of content [start]
// ==================================
// ==================================
if
(
IsErrorContent
(
oneBookMark
.
contentid
)
==
false
)
{
if
(
IsErrorContent
(
oneBookMark
.
contentid
)
==
false
)
{
// If content is ok + checked
if
(
IsOKCheckedContent
(
oneBookMark
.
contentid
)
==
false
)
{
if
(
!
IsExistContent
(
oneBookMark
.
contentid
))
{
if
(
!
IsExistContent
(
oneBookMark
.
contentid
))
{
// Add to list of error content
// Add to list of error content
bookmark_errorContent
.
push
({
contentid
:
oneBookMark
.
contentid
});
bookmark_errorContent
.
push
({
contentid
:
oneBookMark
.
contentid
});
// Remove bookmark
// Remove bookmark
arrBookmarks
.
splice
(
nIndex
,
1
);
arrBookmarks
.
splice
(
nIndex
,
1
);
ClientData
.
isChangedBookmark
(
true
);
ClientData
.
isChangedBookmark
(
true
);
...
@@ -922,6 +961,7 @@ function SyncContent() {
...
@@ -922,6 +961,7 @@ function SyncContent() {
AddContent
(
oneBookMark
.
contentid
);
AddContent
(
oneBookMark
.
contentid
);
}
}
}
}
}
else
{
else
{
// Skip this case
// Skip this case
}
}
...
@@ -931,7 +971,7 @@ function SyncContent() {
...
@@ -931,7 +971,7 @@ function SyncContent() {
ClientData
.
BookMarkData
(
arrBookmarks
);
ClientData
.
BookMarkData
(
arrBookmarks
);
// Call sync pages
// Call sync pages
SyncPages
();
//
SyncPages();
}
}
/*
/*
...
...
abvw/js/contentsearch.js
View file @
d7a9054c
...
@@ -45,6 +45,8 @@ $(document).ready(function(){
...
@@ -45,6 +45,8 @@ $(document).ready(function(){
return
;
return
;
}
}
LockScreen
();
document
.
title
=
i18nText
(
'txtSearchResult'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
document
.
title
=
i18nText
(
'txtSearchResult'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
// Set bookmark screen ClientData.BookmarkScreen(ScreenIds.ContentSearch);
// Set bookmark screen ClientData.BookmarkScreen(ScreenIds.ContentSearch);
...
...
abvw/js/contentview.js
View file @
d7a9054c
...
@@ -2204,6 +2204,9 @@ var audioType3 = function(mediaType, actionType, id, imageUrl, x, y, w, h, visib
...
@@ -2204,6 +2204,9 @@ var audioType3 = function(mediaType, actionType, id, imageUrl, x, y, w, h, visib
}
else
{
}
else
{
createAudio
(
audioFile
,
playType
);
createAudio
(
audioFile
,
playType
);
this
.
setup
(
mediaType
,
actionType
,
id
,
null
,
x
,
y
,
w
,
h
,
visible
,
null
,
null
);
this
.
setup
(
mediaType
,
actionType
,
id
,
null
,
x
,
y
,
w
,
h
,
visible
,
null
,
null
);
this
.
action
=
function
(){
}
}
}
};
};
audioType3
.
prototype
=
new
PageObject
();
audioType3
.
prototype
=
new
PageObject
();
...
@@ -2301,7 +2304,6 @@ function createAudio(audio,type){
...
@@ -2301,7 +2304,6 @@ function createAudio(audio,type){
if
(
document
.
getElementById
(
"play_audio_1"
)
!=
undefined
){
if
(
document
.
getElementById
(
"play_audio_1"
)
!=
undefined
){
//document.getElementById("play_audio_1").load();
//document.getElementById("play_audio_1").load();
}
else
{
}
else
{
if
(
ClientData
.
userOpt_musicMode
()
==
"1"
){
if
(
ClientData
.
userOpt_musicMode
()
==
"1"
){
if
(
avwUserEnvObj
.
browser
==
'firefox'
){
if
(
avwUserEnvObj
.
browser
==
'firefox'
){
$
(
'#playaudioallpage'
).
html
(
$
(
'#playaudioallpage'
).
html
(
...
@@ -2454,11 +2456,13 @@ function changeImageType4(objTarget,nIndex,nIndex1){
...
@@ -2454,11 +2456,13 @@ function changeImageType4(objTarget,nIndex,nIndex1){
imageObj
.
src
=
objTarget
[
nIndex
].
dataObjects
[
nIndex1
].
fileName
;
imageObj
.
src
=
objTarget
[
nIndex
].
dataObjects
[
nIndex1
].
fileName
;
}
}
/* mediaType =
1
write text object*/
/* mediaType =
7
write text object*/
var
text
=
function
(
mediaType
,
actionType
,
id
,
x
,
y
,
w
,
h
,
visible
,
actionFunction
,
content
)
{
var
text
=
function
(
mediaType
,
actionType
,
id
,
x
,
y
,
w
,
h
,
visible
,
actionFunction
,
content
)
{
//var imageUrl = displayText(x,y,w,h,id,content);
//var imageUrl = displayText(x,y,w,h,id,content);
var
imageUrl
=
getTextObjectImage
(
w
,
h
,
content
)
var
imageUrl
=
getTextObjectImage
(
w
,
h
,
content
)
this
.
setup
(
mediaType
,
actionType
,
id
,
imageUrl
,
x
,
y
,
w
,
h
,
visible
,
actionFunction
,
null
);
this
.
setup
(
mediaType
,
actionType
,
id
,
imageUrl
,
x
,
y
,
w
,
h
,
visible
,
actionFunction
,
null
);
this
.
action
=
function
()
{
}
};
};
text
.
prototype
=
new
PageObject
();
text
.
prototype
=
new
PageObject
();
...
...
abvw/js/header.js
View file @
d7a9054c
...
@@ -43,7 +43,6 @@ $(document).ready(function () {
...
@@ -43,7 +43,6 @@ $(document).ready(function () {
$
(
'div#header-searchbox'
).
css
(
'display'
,
'none'
);
$
(
'div#header-searchbox'
).
css
(
'display'
,
'none'
);
//Display user name
//Display user name
//$('#login-username').html(ClientData.userInfo_loginId());
$
(
'#login-username'
).
text
(
ClientData
.
userInfo_userName
());
$
(
'#login-username'
).
text
(
ClientData
.
userInfo_userName
());
...
...
abvw/js/history.js
View file @
d7a9054c
...
@@ -45,6 +45,8 @@ $(document).ready(function(){
...
@@ -45,6 +45,8 @@ $(document).ready(function(){
return
;
return
;
}
}
LockScreen
();
document
.
title
=
i18nText
(
'dspViewHistory'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
document
.
title
=
i18nText
(
'dspViewHistory'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
if
(
ClientData
.
ReadingContentIds
()
==
null
||
ClientData
.
ReadingContentIds
()
==
'undefined'
||
ClientData
.
ReadingContentIds
().
length
==
0
){
if
(
ClientData
.
ReadingContentIds
()
==
null
||
ClientData
.
ReadingContentIds
()
==
'undefined'
||
ClientData
.
ReadingContentIds
().
length
==
0
){
...
@@ -249,7 +251,7 @@ function renderGridView(){
...
@@ -249,7 +251,7 @@ function renderGridView(){
handleSortDisp
();
handleSortDisp
();
//Display user name
//Display user name
$
(
'#login-username'
).
html
(
ClientData
.
userInfo_loginId
());
$
(
'#login-username'
).
html
(
ClientData
.
userInfo_loginId
_session
());
//Refresh GridView
//Refresh GridView
refreshGrid
();
refreshGrid
();
...
...
abvw/js/home.js
View file @
d7a9054c
...
@@ -78,6 +78,9 @@ $(document).ready(function () {
...
@@ -78,6 +78,9 @@ $(document).ready(function () {
getDataJsonFileGenre
();
getDataJsonFileGenre
();
getDataJsonFileGroup
();
getDataJsonFileGroup
();
// Lock screen is here, because of in getDataJsonFileGroup() called click to expand speified nodes of treeview
LockScreen
();
//Change display type to bookshelf type
//Change display type to bookshelf type
$
(
'#control-bookshelf-type'
).
click
(
changeDispBookShelfFunction
);
$
(
'#control-bookshelf-type'
).
click
(
changeDispBookShelfFunction
);
...
@@ -697,18 +700,18 @@ function getDataJsonFileGroup(){
...
@@ -697,18 +700,18 @@ function getDataJsonFileGroup(){
arrData
.
push
(
node
);
arrData
.
push
(
node
);
}
}
});
});
var
tree
1
=
new
TreeView
();
var
tree
2
=
new
TreeView
();
//tree1.TotalCount = totalCount;
//tree1.TotalCount = totalCount;
if
(
group_totalcontent
!=
-
1
)
{
if
(
group_totalcontent
!=
-
1
)
{
tree
1
.
TotalCount
=
group_totalcontent
;
tree
2
.
TotalCount
=
group_totalcontent
;
}
}
tree
1
.
Show
(
"list_1"
,
arrData
,
"AddGroup_Callback"
);
tree
2
.
Show
(
"list_1"
,
arrData
,
"AddGroup_Callback"
);
$
(
"#list_1"
).
treeview
();
$
(
"#list_1"
).
treeview
();
// Expand nodes
// Expand nodes
for
(
var
nIndex
=
0
;
nIndex
<
tree
1
.
ExpandNodes
.
length
;
nIndex
++
)
{
for
(
var
nIndex
=
0
;
nIndex
<
tree
2
.
ExpandNodes
.
length
;
nIndex
++
)
{
if
(
$
(
"#"
+
tree
1
.
ExpandNodes
[
nIndex
]).
parent
())
{
if
(
$
(
"#"
+
tree
2
.
ExpandNodes
[
nIndex
]).
parent
())
{
var
objParent
=
$
(
"#"
+
tree
1
.
ExpandNodes
[
nIndex
]).
parent
();
var
objParent
=
$
(
"#"
+
tree
2
.
ExpandNodes
[
nIndex
]).
parent
();
var
objChild
=
objParent
.
children
()[
0
];
var
objChild
=
objParent
.
children
()[
0
];
if
(
objChild
)
{
if
(
objChild
)
{
try
{
try
{
...
...
abvw/js/settings.js
View file @
d7a9054c
...
@@ -20,6 +20,8 @@ $(document).ready(function () {
...
@@ -20,6 +20,8 @@ $(document).ready(function () {
if
(
!
avwCheckLogin
(
ScreenIds
.
Login
))
return
;
if
(
!
avwCheckLogin
(
ScreenIds
.
Login
))
return
;
LockScreen
();
document
.
title
=
i18nText
(
'dspSetting'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
document
.
title
=
i18nText
(
'dspSetting'
)
+
' | '
+
i18nText
(
'sysAppTitle'
);
InitScreen
();
InitScreen
();
...
@@ -643,7 +645,7 @@ $(function () {
...
@@ -643,7 +645,7 @@ $(function () {
// height: 450
// height: 450
// });
// });
LockScreen
();
// LockScreen();
});
});
function
openBackup
()
{
function
openBackup
()
{
...
...
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