Commit 5374fbff by Masaru Abe

リファクタリング対応

parent 8eead406
......@@ -2237,7 +2237,7 @@ COMMON.unlockFunction = function(inputPass) {
if (result == true) {
if (window.CONTENTVIEW_EVENTS.onUnlock) {
if (window.CONTENTVIEW_EVENTS) {
CONTENTVIEW_EVENTS.onUnlock();
}
}
......
......@@ -1123,6 +1123,9 @@ CONTENTVIEW.changePage = function(page_index) {
CONTENTVIEW_GENERAL.clearCanvas(document.getElementById("offscreen"));
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PDF){
console.log("CONTENTVIEW.changePage");
AVWEB.avwGrabContentPageImage(ClientData.userInfo_accountPath(),
{ contentId: CONTENTVIEW_GENERAL.contentID, sid: ClientData.userInfo_sid(), pageNo: page_index + 1 },
function (data) {
......@@ -2046,6 +2049,9 @@ CONTENTVIEW.changePageWithoutSlide = function(pageMove) {
CONTENTVIEW_GENERAL.clearCanvas(document.getElementById("offscreen"));
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PDF){
console.log("CONTENTVIEW.changePageWithoutSlide");
AVWEB.avwGrabContentPageImage(ClientData.userInfo_accountPath(),
{ contentId: CONTENTVIEW_GENERAL.contentID, sid: ClientData.userInfo_sid(), pageNo: pageMove + 1 },
function (data) {
......
......@@ -10,6 +10,9 @@ CONTENTVIEW_CALLAPI.abapi = function(name, param, method, callback) {
//START TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
/* get Json stored content info */
CONTENTVIEW_CALLAPI.getJsonContentInfo = function() {
console.log("CONTENTVIEW_CALLAPI.getJsonContentInfo");
AVWEB.avwGrabContentPageImage(ClientData.userInfo_accountPath(),
{ contentId: CONTENTVIEW_GENERAL.contentID, sid: ClientData.userInfo_sid(), pageNo: 1 },
function (data) {
......
......@@ -386,6 +386,9 @@ CONTENTVIEW_EVENTS.firstPage_click = function() {
CONTENTVIEW_GENERAL.clearCanvas(document.getElementById("offscreen"));
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PDF){
console.log("CONTENTVIEW_EVENTS.firstPage_click");
AVWEB.avwGrabContentPageImage(ClientData.userInfo_accountPath(),
{ contentId: CONTENTVIEW_GENERAL.contentID, sid: ClientData.userInfo_sid(), pageNo: 1 },
function (data) {
......@@ -459,6 +462,9 @@ CONTENTVIEW_EVENTS.lastPage_click = function() {
//CONTENTVIEW_GENERAL.pageImages = CONTENTVIEW_GETDATA.getURLPageImage("webContentPageImage") + "?contentId=" + CONTENTVIEW_GENERAL.contentID + "&sid=" + ClientData.userInfo_sid() + "&pageNo=" + (CONTENTVIEW_GENERAL.totalPage - 1);
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PDF){
console.log("CONTENTVIEW_EVENTS.lastPage_click");
AVWEB.avwGrabContentPageImage(ClientData.userInfo_accountPath(),
{ contentId: CONTENTVIEW_GENERAL.contentID, sid: ClientData.userInfo_sid(), pageNo: CONTENTVIEW_GENERAL.totalPage },
function (data) {
......
......@@ -1204,6 +1204,9 @@ CONTENTVIEW_GETDATA.renderNextPage = function(){
//Get next page background image
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PDF){
console.log("CONTENTVIEW_GETDATA.renderNextPage");
AVWEB.avwGrabContentPageImage(ClientData.userInfo_accountPath(),
{ contentId: CONTENTVIEW_GENERAL.contentID, sid: ClientData.userInfo_sid(), pageNo: pageNo },
function (data) {
......@@ -1237,6 +1240,9 @@ CONTENTVIEW_GETDATA.renderPrevPage = function(){
//Get prev page background image
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PDF){
console.log("CONTENTVIEW_GETDATA.renderPrevPage");
AVWEB.avwGrabContentPageImage(ClientData.userInfo_accountPath(),
{ contentId: CONTENTVIEW_GENERAL.contentID, sid: ClientData.userInfo_sid(), pageNo: pageNo },
function (data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment