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
518c4d71
Commit
518c4d71
authored
Oct 01, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#10735 PDF以外のコンテンツでしおり登録して一覧で見ると、内容のところにコンテンツ名が表示される
parent
2b27f937
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
140 deletions
+7
-140
abvw/js/bookmark.js
+7
-140
No files found.
abvw/js/bookmark.js
View file @
518c4d71
...
@@ -305,13 +305,14 @@ function ShowBookmark() {
...
@@ -305,13 +305,14 @@ function ShowBookmark() {
contentTitleKana
=
collection_contents
[
nIndex2
].
contentTitleKana
;
contentTitleKana
=
collection_contents
[
nIndex2
].
contentTitleKana
;
contentType
=
collection_contents
[
nIndex2
].
contentType
;
contentType
=
collection_contents
[
nIndex2
].
contentType
;
if
(
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PDF
){
// Search in pages
// Search in pages
for
(
var
nIndex3
=
0
;
nIndex3
<
collection_contents
[
nIndex2
].
pages
.
length
;
nIndex3
++
)
{
for
(
var
nIndex3
=
0
;
nIndex3
<
collection_contents
[
nIndex2
].
pages
.
length
;
nIndex3
++
)
{
if
(
pageNo
==
collection_contents
[
nIndex2
].
pages
[
nIndex3
].
pageNo
)
{
if
(
pageNo
==
collection_contents
[
nIndex2
].
pages
[
nIndex3
].
pageNo
)
{
pageDetail
=
collection_contents
[
nIndex2
].
pages
[
nIndex3
];
pageDetail
=
collection_contents
[
nIndex2
].
pages
[
nIndex3
];
if
(
contentType
!=
COMMON
.
ContentTypeKeys
.
Type_PDF
){
break
;
pageDetail
.
pageText
=
""
;
}
}
break
;
}
}
}
}
...
@@ -341,26 +342,10 @@ function ShowBookmark() {
...
@@ -341,26 +342,10 @@ function ShowBookmark() {
};
};
// Hide all sorting symbol
// Hide all sorting symbol
function
HideSorting
()
{
function
HideSorting
()
{
// $("#txtTitleNmAsc").hide();
// $("#txtTitleNmDesc").hide();
// $("#txtTitleNmKnAsc").hide();
// $("#txtTitleNmKnDesc").hide();
// $("#txtPubDtAsc").hide();
// $("#txtPubDtDesc").hide();
$
(
'#menu_sort li a'
).
removeClass
(
'ascending_sort'
).
removeClass
(
'descending_sort'
);
$
(
'#menu_sort li a'
).
removeClass
(
'ascending_sort'
).
removeClass
(
'descending_sort'
);
};
};
// Sort by title name
// Sort by title name
function
SortTitleName
(
isAsc
)
{
function
SortTitleName
(
isAsc
)
{
// HideSorting();
//
// if (isAsc) {
// $("#txtTitleNmAsc").show();
// }
// else {
// $("#txtTitleNmDesc").show();
// }
HEADER
.
setStatusSort
(
'#dspTitleNm'
,
isAsc
);
HEADER
.
setStatusSort
(
'#dspTitleNm'
,
isAsc
);
...
@@ -415,24 +400,9 @@ function ClearGrid() {
...
@@ -415,24 +400,9 @@ function ClearGrid() {
$
(
this
).
parent
().
parent
().
parent
().
remove
();
$
(
this
).
parent
().
parent
().
parent
().
remove
();
});
});
//if (TotalThread == 0) {
//$('#grid tr').remove();
//}
// var arrSelectedBookmarks = $("input[name='chkDelete']");
};
};
// Sort by title name kana
// Sort by title name kana
function
SortTitleNameKana
(
isAsc
)
{
function
SortTitleNameKana
(
isAsc
)
{
// HideSorting();
// if (isAsc) {
// $("#txtTitleNmKnAsc").show();
// }
// else {
// $("#txtTitleNmKnDesc").show();
// }
HEADER
.
setStatusSort
(
'#dspTitleNmKn'
,
isAsc
);
HEADER
.
setStatusSort
(
'#dspTitleNmKn'
,
isAsc
);
...
@@ -481,14 +451,6 @@ function SortTitleNameKana(isAsc) {
...
@@ -481,14 +451,6 @@ function SortTitleNameKana(isAsc) {
};
};
// Sort by publish date
// Sort by publish date
function
SortPubDate
(
isAsc
)
{
function
SortPubDate
(
isAsc
)
{
// HideSorting();
// if (isAsc) {
// $("#txtPubDtAsc").show();
// }
// else {
// $("#txtPubDtDesc").show();
// }
HEADER
.
setStatusSort
(
'#dspPubDt'
,
isAsc
);
HEADER
.
setStatusSort
(
'#dspPubDt'
,
isAsc
);
...
@@ -566,9 +528,6 @@ function insertRowError(contentid, pageTitle, pageNo) {
...
@@ -566,9 +528,6 @@ function insertRowError(contentid, pageTitle, pageNo) {
newRow
+=
"<section class='sectionBookmark'>"
;
newRow
+=
"<section class='sectionBookmark'>"
;
newRow
+=
" <div class='cnt_section'>"
;
newRow
+=
" <div class='cnt_section'>"
;
// newRow += " <div class='check'>";
// newRow += " <input type='checkbox' name='chkDelete' value='{\"contentid\":" + contentid + ", \"pageNo\":" + pageNo + "}'/>";
// newRow += " </div>";
newRow
+=
'<span class="check">'
;
newRow
+=
'<span class="check">'
;
newRow
+=
"<input type='checkbox' name='chkDelete' value='{
\"
contentid
\"
:"
+
contentid
+
",
\"
pageNo
\"
:"
+
pageNo
+
"}' />"
;
newRow
+=
"<input type='checkbox' name='chkDelete' value='{
\"
contentid
\"
:"
+
contentid
+
",
\"
pageNo
\"
:"
+
pageNo
+
"}' />"
;
...
@@ -593,86 +552,11 @@ function insertRow(contentid, pageThumbnail, pageTitle, pageText, pageNo, hasMem
...
@@ -593,86 +552,11 @@ function insertRow(contentid, pageThumbnail, pageTitle, pageText, pageNo, hasMem
var
imgMarking
=
'<img class="pen" alt="" src="./img/list/icon_pen.png" />'
;
var
imgMarking
=
'<img class="pen" alt="" src="./img/list/icon_pen.png" />'
;
var
imgMemo
=
'<img class="sticker" alt="" src="./img/list/icon_sticker.png" />'
;
var
imgMemo
=
'<img class="sticker" alt="" src="./img/list/icon_sticker.png" />'
;
var
newRow
=
""
;
var
newRow
=
""
;
/*newRow += "<section class='sectionBookmark'>";
newRow += "<div class='cnt_section'>";
newRow += "<span class='check'>";
newRow += "<input type='checkbox' name='chkDelete' value='{\"contentid\":" + contentid + ", \"pageNo\":" + pageNo + ", \"index\": " + index+ "}'/>";
newRow += "</span>";
newRow += "<a class='img'>";
newRow += '<img id="pageImg' + contentid + '" src="' + pageThumbnail + '" width="160" height="120" style="display:none;">';
newRow += '<img id="loadingIcon' + contentid + "_" + pageNo + '" src="./img/data_loading.gif" height="25px" width="25px" style="padding: 46px; "/>';
newRow += "</a>";
newRow += "<div class='text'>";
//newRow += '<label id="Label1" class="name" style="color: #2D83DA;">' + COMMON.truncate(pageTitle, 20) + '</label>';
newRow += '<a class="name" href="#" id="Label1">' + COMMON.truncate(pageTitle, 20) + '</a>'; //<img src="img/bookshelf/icon_01.jpg" width="20" height="20" class="listIcon">
newRow += '<div class="info">';
newRow += '<ul class="date">';
newRow += '<li><label id="Label2" class="lang" lang="txtPage">' + I18N.i18nText('txtPage') + '</label><label id="Label3">' + pageNo + '</label></li>';
var contentText = COMMON.htmlEncode(COMMON.getLines(pageText, 3));
newRow += '<li><label id="Label1">' + COMMON.truncate(contentText, 80) + '</label></li>';
newRow += "</ul>";
newRow += '<ul class="pic" style="align:right">';
newRow += "<li>";
//Resize Image
var imgTemp = new Image();
imgTemp.onload = function () {
if (imgTemp.width > imgTemp.height) {
$("img#pageImg" + contentid).attr('height', '');
$("img#pageImg" + contentid).removeAttr('height');
$("img#pageImg" + contentid).attr('width', '120');
var realHeight = (120 * imgTemp.height) / imgTemp.width;
$("img#pageImg" + contentid).css('padding-top', (120 - realHeight) / 2 + 'px');
}
else {
$("img#pageImg" + contentid).attr('width', '');
$("img#pageImg" + contentid).removeAttr('width');
$("img#pageImg" + contentid).attr('height', '120');
$("img#pageImg" + contentid).css('padding-top', '0px');
}
$("#loadingIcon" + contentid + "_" + pageNo).fadeOut('slow', function () {
$("img#pageImg" + contentid).fadeIn('slow');
});
};
imgTemp.src = pageThumbnail;
if (hasMemo) {
newRow += imgMemo;
}
else {
newRow += imgMemoHide;
}
newRow += "</li>";
newRow += "<li>";
if (hasMarking) {
newRow += imgMarking;
}
else {
newRow += imgMarkingHide;
}
newRow += "</li>";
newRow += "<li><a class='read lang' name='dspRead' value='{\"contentid\":\"" + contentid + "\", \"pageNo\":\"" + pageNo + "\"}' lang='txtRead'>" + I18N.i18nText('txtRead') + "</a></li>";
newRow += "</ul>";
newRow += "</div>";
newRow += "</div>";
newRow += "</div>";
newRow += "</section>";
*/
newRow
+=
"<section class='sectionBookmark'>"
;
newRow
+=
"<section class='sectionBookmark'>"
;
newRow
+=
'<div class="cnt_section">'
;
newRow
+=
'<div class="cnt_section">'
;
newRow
+=
'<span class="check">'
;
newRow
+=
'<span class="check">'
;
// newRow +="<input type='checkbox' name='chkDelete' value='{contentid:" + contentid + ", pageNo:" + pageNo + ", index: " + index+ "}' />";
newRow
+=
"<input type='checkbox' name='chkDelete' value='{
\"
contentid
\"
:"
+
contentid
+
",
\"
pageNo
\"
:"
+
pageNo
+
",
\"
index
\"
: "
+
index
+
"}'/>"
;
newRow
+=
"<input type='checkbox' name='chkDelete' value='{
\"
contentid
\"
:"
+
contentid
+
",
\"
pageNo
\"
:"
+
pageNo
+
",
\"
index
\"
: "
+
index
+
"}'/>"
;
newRow
+=
'</span>'
;
newRow
+=
'</span>'
;
newRow
+=
'<a class="img" href="#">'
;
newRow
+=
'<a class="img" href="#">'
;
...
@@ -681,7 +565,6 @@ function insertRow(contentid, pageThumbnail, pageTitle, pageText, pageNo, hasMem
...
@@ -681,7 +565,6 @@ function insertRow(contentid, pageThumbnail, pageTitle, pageText, pageNo, hasMem
newRow
+=
'</a>'
;
newRow
+=
'</a>'
;
newRow
+=
'<div class="text">'
;
newRow
+=
'<div class="text">'
;
//newRow += '<a class="name" href="#"><img src="img/bookshelf/icon_01.jpg" width="20" height="20" class="listIcon">' + COMMON.truncate(pageTitle, 20) + '</a>';
newRow
+=
'<a class="name" href="#">'
+
COMMON
.
truncate
(
pageTitle
,
20
)
+
'</a>'
;
newRow
+=
'<a class="name" href="#">'
+
COMMON
.
truncate
(
pageTitle
,
20
)
+
'</a>'
;
newRow
+=
'<div class="info">'
;
newRow
+=
'<div class="info">'
;
...
@@ -691,9 +574,6 @@ function insertRow(contentid, pageThumbnail, pageTitle, pageText, pageNo, hasMem
...
@@ -691,9 +574,6 @@ function insertRow(contentid, pageThumbnail, pageTitle, pageText, pageNo, hasMem
newRow
+=
'<li><label id="Label1">'
+
COMMON
.
truncate
(
contentText
,
60
)
+
'</label></li>'
;
newRow
+=
'<li><label id="Label1">'
+
COMMON
.
truncate
(
contentText
,
60
)
+
'</label></li>'
;
// newRow +='<li>公開日:2012/09/14</li>';
// newRow += '<li>閲覧日:2012/09/18</li>';
newRow
+=
'</ul>'
;
newRow
+=
'</ul>'
;
newRow
+=
'<ul class="pic">'
;
newRow
+=
'<ul class="pic">'
;
...
@@ -731,8 +611,6 @@ function insertRow(contentid, pageThumbnail, pageTitle, pageText, pageNo, hasMem
...
@@ -731,8 +611,6 @@ function insertRow(contentid, pageThumbnail, pageTitle, pageText, pageNo, hasMem
else
{
else
{
newRow
+=
'<li><a href="#">'
+
imgMemoHide
+
'</a></li>'
;
newRow
+=
'<li><a href="#">'
+
imgMemoHide
+
'</a></li>'
;
}
}
// newRow += "</li>";
// newRow += "<li>";
if
(
hasMarking
)
{
if
(
hasMarking
)
{
newRow
+=
'<li><a href="#">'
+
imgMarking
+
'</a></li>'
;
newRow
+=
'<li><a href="#">'
+
imgMarking
+
'</a></li>'
;
...
@@ -744,11 +622,6 @@ function insertRow(contentid, pageThumbnail, pageTitle, pageText, pageNo, hasMem
...
@@ -744,11 +622,6 @@ function insertRow(contentid, pageThumbnail, pageTitle, pageText, pageNo, hasMem
newRow
+=
'<li class="pageno"><label id="Label2" class="lang" lang="txtPage">'
+
I18N
.
i18nText
(
'txtPage'
)
+
'</label><label id="Label3">'
+
pageNo
+
'</label></li>'
;
newRow
+=
'<li class="pageno"><label id="Label2" class="lang" lang="txtPage">'
+
I18N
.
i18nText
(
'txtPage'
)
+
'</label><label id="Label3">'
+
pageNo
+
'</label></li>'
;
//newRow +='<li><a href="#"><img class="sticker" src="img/list/icon_sticker.png"></a></li>';
//newRow +='<li><a href="#"><img class="pen" src="img/list/icon_pen.png"></a></li>';
//newRow += "<li><a class='read lang' name='dspRead' value='{contentid:" + contentid + ", pageNo:" + pageNo + "}' lang='txtRead'>" + I18N.i18nText('txtRead') + "</a></li>";
newRow
+=
"<li><a class='read lang' name='dspRead' value='{
\"
contentid
\"
:
\"
"
+
contentid
+
"
\"
,
\"
pageNo
\"
:
\"
"
+
pageNo
+
"
\"
,
\"
contentType
\"
:
\"
"
+
contentType
+
"
\"
}' lang='txtRead'>"
+
I18N
.
i18nText
(
'txtRead'
)
+
"</a></li>"
;
newRow
+=
"<li><a class='read lang' name='dspRead' value='{
\"
contentid
\"
:
\"
"
+
contentid
+
"
\"
,
\"
pageNo
\"
:
\"
"
+
pageNo
+
"
\"
,
\"
contentType
\"
:
\"
"
+
contentType
+
"
\"
}' lang='txtRead'>"
+
I18N
.
i18nText
(
'txtRead'
)
+
"</a></li>"
;
newRow
+=
'</ul>'
;
newRow
+=
'</ul>'
;
newRow
+=
'</div>'
;
newRow
+=
'</div>'
;
...
@@ -941,12 +814,6 @@ function changeLanguageCallBackFunction() {
...
@@ -941,12 +814,6 @@ function changeLanguageCallBackFunction() {
$
(
"#dspTitleNmKn"
).
show
();
$
(
"#dspTitleNmKn"
).
show
();
$
(
"#dspTitleNmKn_Seperate"
).
show
();
$
(
"#dspTitleNmKn_Seperate"
).
show
();
if
(
ClientData
.
sortOpt_searchDivision
()
==
2
)
{
// Kana
if
(
ClientData
.
sortOpt_searchDivision
()
==
2
)
{
// Kana
// if (ClientData.sortOpt_sortType() == 1) { // ASC
// $("#txtTitleNmKnAsc").show();
// }
// else {
// $("#txtTitleNmKnDesc").show();
// }
HEADER
.
setStatusSort
(
'#dspTitleNmKn'
,
orderSort
==
COMMON
.
Consts
.
ConstOrderSetting_Asc
);
HEADER
.
setStatusSort
(
'#dspTitleNmKn'
,
orderSort
==
COMMON
.
Consts
.
ConstOrderSetting_Asc
);
}
}
}
}
...
...
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