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
44899bb0
Commit
44899bb0
authored
Feb 12, 2015
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
テスト対応
parent
1377ba9a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
36 deletions
+35
-36
abvw/js/contentview.js
+19
-12
abvw/js/contentview_FileSystem.js
+14
-22
abvw/js/history.js
+2
-2
No files found.
abvw/js/contentview.js
View file @
44899bb0
...
...
@@ -5506,12 +5506,7 @@ CONTENTVIEW.screenMove = function(){
CONTENTVIEW
.
screenBack
=
function
(){
//後始末
$
(
'#dialog'
).
hide
();
$
(
'#dialog'
).
empty
();
$
(
'#dialog'
).
removeClass
();
$
(
'#dialog'
).
removeAttr
(
'style'
);
$
(
'#dialog'
).
addClass
(
'web_dialog'
);
$
(
'#divCacheLoading'
).
hide
();
CONTENTVIEW
.
initScreen
();
$
(
"#viewer"
).
hide
();
if
(
$
(
'#bookshelf'
).
length
||
$
(
'#list'
).
length
){
...
...
@@ -5548,6 +5543,23 @@ CONTENTVIEW.screenBack = function(){
};
CONTENTVIEW
.
initScreen
=
function
(){
//画面初期化
if
(
$
(
'#canvasWrapper'
).
length
)
{
$
(
'#canvasWrapper'
).
empty
();
}
if
(
$
(
'#dialog'
).
length
)
{
$
(
'#dialog'
).
hide
();
$
(
'#dialog'
).
empty
();
$
(
'#dialog'
).
removeClass
();
$
(
'#dialog'
).
removeAttr
(
'style'
);
$
(
'#dialog'
).
addClass
(
'web_dialog'
);
}
$
(
'#divCacheLoading'
).
hide
();
};
$
(
function
()
{
//CONTENTVIEW.ready();
});
...
...
@@ -5625,12 +5637,7 @@ CONTENTVIEW.ready = function(){
}
//画面初期化
$
(
'#dialog'
).
hide
();
$
(
'#dialog'
).
empty
();
$
(
'#dialog'
).
removeClass
();
$
(
'#dialog'
).
removeAttr
(
'style'
);
$
(
'#dialog'
).
addClass
(
'web_dialog'
);
$
(
'#divCacheLoading'
).
hide
();
CONTENTVIEW
.
initScreen
();
/* check login */
if
(
!
AVWEB
.
avwCheckLogin
(
COMMON
.
ScreenIds
.
Login
))
return
;
...
...
abvw/js/contentview_FileSystem.js
View file @
44899bb0
...
...
@@ -358,28 +358,21 @@ CONTENTVIEW_FILESYSTEM.createMovieCache = function(resourceUrl, fileName) {
return
;
}
//既にビジーなら戻る
if
(
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
){
return
;
}
//キャッシュ化
var
downloadSize
=
null
;
var
xhr
=
new
XMLHttpRequest
();
xhr
.
onreadystatechange
=
function
(){
if
(
this
.
readyState
==
2
){
downloadSize
=
xhr
.
getResponseHeader
(
'Content-Length'
);
console
.
log
(
"Content-Length:"
+
downloadSize
);
console
.
log
(
"limit:"
+
AVWEB
.
avwSysSetting
().
movieCacheLimitMB
);
//制限値チェック
if
(
downloadSize
){
if
(
downloadSize
>
AVWEB
.
avwSysSetting
().
movieCacheLimitMB
*
COMMON
.
MB_BYTE
){
console
.
log
(
"abort"
);
xhr
.
abort
();
}
}
}
if
(
this
.
readyState
==
4
&&
this
.
status
==
200
){
if
(
this
.
readyState
==
4
){
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
false
;
$
(
'#divCacheLoading'
).
css
(
'display'
,
'none'
);
if
(
this
.
status
==
200
){
//this.response is what you're looking for
//AVWEB.avwLog(this.response, typeof this.response);
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getFile
(
...
...
@@ -410,17 +403,16 @@ CONTENTVIEW_FILESYSTEM.createMovieCache = function(resourceUrl, fileName) {
},
CONTENTVIEW_FILESYSTEM
.
errorHandler
);
}
else
{
if
(
this
.
readyState
==
2
){
//AVWEB.avwLog("onreadystatechange:" + this.readyState + " " + this.status);
}
}
else
if
(
this
.
readyState
==
2
){
AVWEB
.
avwLog
(
"onreadystatechange:"
+
this
.
readyState
+
" "
+
this
.
status
);
downloadSize
=
xhr
.
getResponseHeader
(
'Content-Length'
);
console
.
l
og
(
"Content-Length:"
+
downloadSize
);
console
.
log
(
"
limit:"
+
AVWEB
.
avwSysSetting
().
movieCacheLimitMB
);
AVWEB
.
avwL
og
(
"Content-Length:"
+
downloadSize
);
AVWEB
.
avwLog
(
"Cache
limit:"
+
AVWEB
.
avwSysSetting
().
movieCacheLimitMB
);
//制限値チェック
if
(
downloadSize
&&
downloadSize
>
AVWEB
.
avwSysSetting
().
movieCacheLimitMB
*
COMMON
.
MB_BYTE
){
console
.
log
(
"
abort"
);
AVWEB
.
avwLog
(
"CacheLimit
abort"
);
xhr
.
abort
();
}
else
{
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
true
;
...
...
@@ -433,7 +425,7 @@ CONTENTVIEW_FILESYSTEM.createMovieCache = function(resourceUrl, fileName) {
}
};
xhr
.
onabort
=
function
(
e
){
console
.
l
og
(
"XHR 通信中止"
);
AVWEB
.
avwL
og
(
"XHR 通信中止"
);
CONTENTVIEW_FILESYSTEM
.
isXhrBusy
=
false
;
$
(
'#divCacheLoading'
).
css
(
'display'
,
'none'
);
};
...
...
abvw/js/history.js
View file @
44899bb0
...
...
@@ -1128,7 +1128,7 @@ HISTORY.formatDate = function(originDate){
HISTORY
.
sortByViewDateDesc
=
function
(){
console
.
log
(
"HISTORY.sortByViewDateDesc"
);
//
console.log("HISTORY.sortByViewDateDesc");
var
sortArr
=
HISTORY
.
contentViewData
;
...
...
@@ -1374,7 +1374,7 @@ HISTORY.sortByTitleKanaDesc = function(){
HISTORY
.
renderContentAfterSort
=
function
(
contentSortArr
){
console
.
log
(
"HISTORY.renderContentAfterSort"
);
//
console.log("HISTORY.renderContentAfterSort");
HISTORY
.
refreshGrid
();
//var htmlTemp = "";
...
...
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