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
e3e221f1
Commit
e3e221f1
authored
Mar 17, 2015
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
バックアップリストア対応
parent
0f78c21c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
54 additions
and
9 deletions
+54
-9
abvw/.htaccess
+4
-4
abvw/common/json/lang/lang-en.json
+2
-1
abvw/common/json/lang/lang-ko.json
+2
-1
abvw/js/contentsearch.js
+0
-0
abvw/js/header.js
+33
-1
abvw/js/history.js
+0
-0
abvw/js/home.js
+0
-0
abvw/js/settings.js
+9
-0
abvw/settings.html
+4
-2
No files found.
abvw/.htaccess
View file @
e3e221f1
SetEnvIf
Referer "^http://web3\.agentec\.jp/web_test/" RefererCheck
#
SetEnvIf Referer "^http://web3\.agentec\.jp/web_test/" RefererCheck
Order
deny,allow
#
Order deny,allow
Deny
from
all
#
Deny from all
Allow
from
env=RefererCheck
#
Allow from env=RefererCheck
<
Files
~ "\.(js|json)$"
>
<
Files
~ "\.(js|json)$"
>
Header
add
Pragma "no-cache"
Header
add
Pragma "no-cache"
Header
set
Cache-Control no-cache
Header
set
Cache-Control no-cache
...
...
abvw/common/json/lang/lang-en.json
View file @
e3e221f1
...
@@ -156,5 +156,6 @@
...
@@ -156,5 +156,6 @@
"txtUrlValidDate"
:
"validated period"
,
"txtUrlValidDate"
:
"validated period"
,
"txtMaxDownloadCount"
:
"number of max dl"
,
"txtMaxDownloadCount"
:
"number of max dl"
,
"msgShareUrlPassword"
:
"When you set a password, please input below."
,
"msgShareUrlPassword"
:
"When you set a password, please input below."
,
"msgStreamingOpenError"
:
"It is the contents that I cannot read in the streaming."
"msgStreamingOpenError"
:
"It is the contents that I cannot read in the streaming."
,
"txtBkContentStatus"
:
"Content Status"
}
}
abvw/common/json/lang/lang-ko.json
View file @
e3e221f1
...
@@ -156,5 +156,6 @@
...
@@ -156,5 +156,6 @@
"txtUrlValidDate"
:
"URL유효기간"
,
"txtUrlValidDate"
:
"URL유효기간"
,
"txtMaxDownloadCount"
:
"최대DL횟수"
,
"txtMaxDownloadCount"
:
"최대DL횟수"
,
"msgShareUrlPassword"
:
"암호를 설정할경우 다음의 입력란에 입력하십시오."
,
"msgShareUrlPassword"
:
"암호를 설정할경우 다음의 입력란에 입력하십시오."
,
"msgStreamingOpenError"
:
"스트리밍에서는 열람 할 수 없는 컨텐츠입니다."
"msgStreamingOpenError"
:
"스트리밍에서는 열람 할 수 없는 컨텐츠입니다."
,
"txtBkContentStatus"
:
"콘텐츠 상태"
}
}
abvw/js/contentsearch.js
View file @
e3e221f1
This diff is collapsed.
Click to expand it.
abvw/js/header.js
View file @
e3e221f1
...
@@ -620,7 +620,8 @@ HEADER.DoBackup = function(isBackupMarking, isBackupMemo, isBackupBookmark, isBa
...
@@ -620,7 +620,8 @@ HEADER.DoBackup = function(isBackupMarking, isBackupMemo, isBackupBookmark, isBa
//READステータス追加
//READステータス追加
if
(
ClientData
.
ReadingContentIds
().
length
>
0
){
if
(
ClientData
.
ReadingContentIds
().
length
>
0
){
for
(
var
nIndex
=
0
;
nIndex
<
ClientData
.
ReadingContentIds
().
length
;
nIndex
++
){
for
(
var
nIndex
=
0
;
nIndex
<
ClientData
.
ReadingContentIds
().
length
;
nIndex
++
){
HEADER
.
setContentStatus
(
ClientData
.
ReadingContentIds
()[
nIndex
].
contentid
,
0
);
//存在しない場合追加
HEADER
.
addContentStatusRead
(
ClientData
.
ReadingContentIds
()[
nIndex
].
contentid
);
}
}
}
}
...
@@ -1218,8 +1219,39 @@ HEADER.setContentStatus = function(contentId, status) {
...
@@ -1218,8 +1219,39 @@ HEADER.setContentStatus = function(contentId, status) {
var
newArray
=
[];
var
newArray
=
[];
ClientData
.
ContentStatusData
(
newArray
);
ClientData
.
ContentStatusData
(
newArray
);
ClientData
.
ContentStatusData
(
arrContentStatus
);
ClientData
.
ContentStatusData
(
arrContentStatus
);
};
};
//JSONバックアップ前にWebでリード済のステータスがJSONになければ追加
HEADER
.
addContentStatusRead
=
function
(
contentId
)
{
var
arr
=
ClientData
.
ContentStatusData
();
var
hitFlg
=
false
;
for
(
var
nIndex1
=
0
;
nIndex1
<
arr
.
length
;
nIndex1
++
)
{
if
(
arr
[
nIndex1
].
contentId
==
contentId
){
hitFlg
=
true
;
break
;
}
}
if
(
hitFlg
==
false
){
var
obj
=
new
ContentStatusEntity
();
obj
.
contentId
=
contentId
;
obj
.
status
=
0
;
//read
// Add object to client
arr
.
push
(
obj
);
//バックアップ対象フラグセット
ClientData
.
isChangedContentStatus
(
true
);
//初期化したほうが良い?
var
newArray
=
[];
ClientData
.
ContentStatusData
(
newArray
);
ClientData
.
ContentStatusData
(
arr
);
}
};
HEADER
.
getContentStatus
=
function
(
contentId
)
{
HEADER
.
getContentStatus
=
function
(
contentId
)
{
var
arr
=
ClientData
.
ContentStatusData
();
var
arr
=
ClientData
.
ContentStatusData
();
for
(
var
nIndex1
=
0
;
nIndex1
<
arr
.
length
;
nIndex1
++
)
{
for
(
var
nIndex1
=
0
;
nIndex1
<
arr
.
length
;
nIndex1
++
)
{
...
...
abvw/js/history.js
View file @
e3e221f1
This diff is collapsed.
Click to expand it.
abvw/js/home.js
View file @
e3e221f1
This diff is collapsed.
Click to expand it.
abvw/js/settings.js
View file @
e3e221f1
...
@@ -713,6 +713,8 @@ SETTINGS.dspOptReset_Click = function(e) {
...
@@ -713,6 +713,8 @@ SETTINGS.dspOptReset_Click = function(e) {
$
(
'#chkBkMemo'
).
attr
(
'checked'
,
'checked'
);
$
(
'#chkBkMemo'
).
attr
(
'checked'
,
'checked'
);
// set default backup bookmark
// set default backup bookmark
$
(
'#chkBkShiori'
).
attr
(
'checked'
,
'checked'
);
$
(
'#chkBkShiori'
).
attr
(
'checked'
,
'checked'
);
// set default backup contentStatus
$
(
'#chkBkContentStatus'
).
attr
(
'checked'
,
'checked'
);
// reset page transition no.4
// reset page transition no.4
$
(
'#txtValueAnimation'
).
val
(
1
);
$
(
'#txtValueAnimation'
).
val
(
1
);
...
@@ -1044,6 +1046,13 @@ SETTINGS.initScreen = function() {
...
@@ -1044,6 +1046,13 @@ SETTINGS.initScreen = function() {
$
(
"#chkBkShiori"
).
attr
(
'checked'
,
'checked'
);
$
(
"#chkBkShiori"
).
attr
(
'checked'
,
'checked'
);
}
}
if
(
ClientData
.
userOpt_bkContentStatusFlag
()
==
0
)
{
$
(
"#chkBkContentStatus"
).
removeAttr
(
'checked'
);
}
else
{
$
(
"#chkBkContentStatus"
).
attr
(
'checked'
,
'checked'
);
}
// load config page transition & page transition period No.4
// load config page transition & page transition period No.4
$
(
'#cboAnimation'
).
val
(
ClientData
.
userOpt_pageTransition
());
$
(
'#cboAnimation'
).
val
(
ClientData
.
userOpt_pageTransition
());
...
...
abvw/settings.html
View file @
e3e221f1
...
@@ -153,13 +153,15 @@
...
@@ -153,13 +153,15 @@
<label
id=
"txtOptBkCfm"
for=
"chkOptBkCfm"
lang=
"txtOptBkCfm"
class=
"lang"
>
<!--毎回ログアウトの時、バックアップするかどうかは必ず確認する-->
</label>
<label
id=
"txtOptBkCfm"
for=
"chkOptBkCfm"
lang=
"txtOptBkCfm"
class=
"lang"
>
<!--毎回ログアウトの時、バックアップするかどうかは必ず確認する-->
</label>
</label>
</label>
<br
/>
<br
/>
<label
class=
"option_backup"
>
<!--<label class="option_backup">-->
<p
class=
"option_backup"
style=
"font-size: 13px;margin-left:50px"
>
<label
id=
"txtBkDefault"
lang=
"txtBkDefault"
class=
"lang"
>
<!--バックアップのデフォルト : -->
</label>
<label
id=
"txtBkDefault"
lang=
"txtBkDefault"
class=
"lang"
>
<!--バックアップのデフォルト : -->
</label>
<input
type=
"checkbox"
id=
"chkBkMarking"
class=
"chkbx"
checked=
"checked"
/><label
id=
"txtBkMarking"
for=
"chkBkMarking"
lang=
"txtBkMarking"
class=
"lang"
>
<!--マーキング-->
</label>
<input
type=
"checkbox"
id=
"chkBkMarking"
class=
"chkbx"
checked=
"checked"
/><label
id=
"txtBkMarking"
for=
"chkBkMarking"
lang=
"txtBkMarking"
class=
"lang"
>
<!--マーキング-->
</label>
<input
type=
"checkbox"
id=
"chkBkMemo"
class=
"chkbx"
checked=
"checked"
/><label
id=
"txtBkMemo"
for=
"chkBkMemo"
lang=
"txtBkMemo"
class=
"lang"
>
<!--メモ-->
</label>
<input
type=
"checkbox"
id=
"chkBkMemo"
class=
"chkbx"
checked=
"checked"
/><label
id=
"txtBkMemo"
for=
"chkBkMemo"
lang=
"txtBkMemo"
class=
"lang"
>
<!--メモ-->
</label>
<input
type=
"checkbox"
id=
"chkBkShiori"
class=
"chkbx"
checked=
"checked"
/><label
id=
"txtBkShiori"
for=
"chkBkShiori"
lang=
"txtBkShiori"
class=
"lang"
>
<!--しおり-->
</label>
<input
type=
"checkbox"
id=
"chkBkShiori"
class=
"chkbx"
checked=
"checked"
/><label
id=
"txtBkShiori"
for=
"chkBkShiori"
lang=
"txtBkShiori"
class=
"lang"
>
<!--しおり-->
</label>
<input
type=
"checkbox"
id=
"chkBkContentStatus"
class=
"chkbx"
checked=
"checked"
/><label
id=
"txtBkContentStatus"
for=
"chkBkContentStatus"
lang=
"txtBkContentStatus"
class=
"lang"
>
<!--コンテンツ状態-->
</label>
<input
type=
"checkbox"
id=
"chkBkContentStatus"
class=
"chkbx"
checked=
"checked"
/><label
id=
"txtBkContentStatus"
for=
"chkBkContentStatus"
lang=
"txtBkContentStatus"
class=
"lang"
>
<!--コンテンツ状態-->
</label>
</label>
</p>
<!--</label>-->
</p>
</p>
<p
class=
"backupbtn"
><a
class=
"backup lang"
lang=
"dspOptBk"
id=
"dspOptBk"
href=
"#"
style=
"display:none;"
>
<!--バックアップ-->
</a><a
href=
"#"
id=
"dspOptRes"
lang=
"dspOptRes"
class=
"lang"
style=
"visibility:hidden;"
>
<!--リストア-->
</a></p>
<p
class=
"backupbtn"
><a
class=
"backup lang"
lang=
"dspOptBk"
id=
"dspOptBk"
href=
"#"
style=
"display:none;"
>
<!--バックアップ-->
</a><a
href=
"#"
id=
"dspOptRes"
lang=
"dspOptRes"
class=
"lang"
style=
"visibility:hidden;"
>
<!--リストア-->
</a></p>
<p
class=
"savebtn"
><a
class=
"save lang"
href=
"#"
id=
"dspSave"
lang=
"dspSave"
>
<!--保存する-->
</a><a
class=
"default lang"
href=
"#"
id=
"dspOptReset"
lang=
"dspOptReset"
>
<!--初期設定に戻る-->
</a><div
style=
"clear:both;"
></div></p>
<p
class=
"savebtn"
><a
class=
"save lang"
href=
"#"
id=
"dspSave"
lang=
"dspSave"
>
<!--保存する-->
</a><a
class=
"default lang"
href=
"#"
id=
"dspOptReset"
lang=
"dspOptReset"
>
<!--初期設定に戻る-->
</a><div
style=
"clear:both;"
></div></p>
...
...
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