Commit 22f001de by Masaru Abe

テスト対応

parent c48a078a
......@@ -898,8 +898,13 @@ AVWEB.avwClearError = function() {
};
/* ブラウザunload時に警告メッセージの出力設定を行う関数 */
AVWEB.avwSetLogoutNortice = function() {
console.log("AVWEB.avwSetLogoutNortice:" + ClientData.serviceOpt_daihatsu());
window.onbeforeunload = function(event) {
console.log("window.onbeforeunload");
//DHカスタム
if( ClientData.serviceOpt_daihatsu() == 'Y'){
if( "CONTENTVIEW_GENERAL.contentID" in window ){
......
......@@ -150,7 +150,8 @@
}
.cnt_section_list .text ul.pic li img {
position: relative;
left: -18px;
/*left: -18px;*/
left: 1px;
}
.cnt_section_list .text ul.pic li a.read {
margin-top: 42px;
......
......@@ -61,7 +61,7 @@
a:hover{
cursor: pointer;
}
canvas:hover
#main-ws canvas:hover
{
cursor: pointer;
}
......
......@@ -27,7 +27,7 @@ a
font-size: 12px;
}
.button{ float:right; margin-top:20px; margin-right:2px; }
.delete {
#ws-body .delete {
position: absolute;
top: 27px;
left: 20px;
......@@ -36,23 +36,24 @@ a
padding: 2px 26px;
margin-left: 5px;
}.delete:hover {
}
#ws-body .delete:hover {
}
.delete:active {
#ws-body .delete:active {
/* position:relative;
top:1px;*/
}
a.delete:not(:target) {
#ws-body a.delete:not(:target) {
/* background-image: url(button_back_off.svg);*/
}
a.delete:hover:not(:target) {
#ws-body a.delete:hover:not(:target) {
/* background-image: url(button_back_on.svg);*/
}
.delete_hover {
#ws-body .delete_hover {
display: inline-block;
......@@ -60,9 +61,10 @@ a.delete:hover:not(:target) {
margin-left: 5px;
background-position: center top;
}
.delete:hover:hover {
#ws-body .delete:hover:hover {
}.delete:hover:active {
}
#ws-body .delete:hover:active {
/* position:relative;
top:1px;*/
}
......
......@@ -42,7 +42,7 @@
a:hover{
}
canvas:hover{
#main-ws canvas:hover{
}
......
......@@ -20,7 +20,7 @@ a
font-size:12px;
}
.button{ }
.delete {
#ws-body .delete {
-moz-box-shadow: inset 0px 1px 0px 0px #C66;
-webkit-box-shadow: inset 0px 1px 0px 0px #C66;
......@@ -40,27 +40,28 @@ a
text-decoration: none;
background-position: center top;
}.delete:hover {
}
#ws-body .delete:hover {
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #CC0000), color-stop(1, #F33) );
background:-moz-linear-gradient( center top, #CC0000 5%, #F33 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#CC0000', endColorstr='#F33');
background-color:#F33;
}
.delete:active {
#ws-body .delete:active {
}
a.delete:not(:target) {
#ws-body a.delete:not(:target) {
filter: none;
-ms-filter: none;
/* background-image: url(button_back_off.svg);*/
}
a.delete:hover:not(:target) {
#ws-body a.delete:hover:not(:target) {
filter: none;
-ms-filter: none;
/* background-image: url(button_back_on.svg);*/
}
.delete_hover {
#ws-body .delete_hover {
-moz-box-shadow: inset 0px 1px 0px 0px #C66;
-webkit-box-shadow: inset 0px 1px 0px 0px #C66;
box-shadow: inset 0px 1px 0px 0px #C66;
......@@ -81,12 +82,13 @@ a.delete:hover:not(:target) {
line-height: 20px;
background-position: center top;
}
.delete:hover:hover {
#ws-body .delete:hover:hover {
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #CC0000), color-stop(1, #F33) );
background:-moz-linear-gradient( center top, #CC0000 5%, #F33 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#CC0000', endColorstr='#F33');
background-color:#F33;
}.delete:hover:active {
}
#ws-body .delete:hover:active {
}
......
......@@ -95,6 +95,12 @@ $(document).ready(function () {
$("#dspTitleNmKn_Seperate").show();
}
//ビューア、共有表示パーツ読み込み
$("#viewer").load("./inc_contentview.html", function (myData, myStatus, xhr){
//読み込み完了時の処理
I18N.i18nReplaceText();
});
});
/*
......@@ -641,7 +647,7 @@ BOOKMARK.insertRow = function(contentid, pageThumbnail, pageTitle, pageText, pag
newRow +='<li>';
newRow += "<a class='read read_open lang' name='dspRead' value='{\"contentid\":\"" + contentid + "\", \"pageNo\":\"" + pageNo + "\", \"contentType\":\"" + contentType + "\" }' lang='txtRead'>" + I18N.i18nText('txtRead') + "</a>";
console.log("BOOKMARK.download[contentid]:" + BOOKMARK.download[contentid]);
//console.log("BOOKMARK.download[contentid]:" + BOOKMARK.download[contentid]);
if( BOOKMARK.download[contentid] == '1' ){
newRow += "<a class='read read_download' name='dspDownload' contentid='" + contentid + "'>ダウンロード</a>";
}
......@@ -895,7 +901,7 @@ BOOKMARK.IsExistContent = function(strContentId) {
result["isExisted"] = isExisted;
result["contentType"] = contentType;
console.log("API BOOKMARK.download:" + strContentId + ":" + data.download);
//console.log("API BOOKMARK.download:" + strContentId + ":" + data.download);
// save content type
BOOKMARK.contentTypes[strContentId] = contentType;
......
......@@ -121,13 +121,19 @@ $(document).ready(function(){
//詳細、共有表示パーツ読み込み
$("#inc_detail").load("./inc_detail.html", function (myData, myStatus, xhr){
//読み込み完了時の処理
//読み込み完了時の処理
I18N.i18nReplaceText();
$('.datepicker').pickadate({
format: 'yyyy-mm-dd'
});
});
//ビューア、共有表示パーツ読み込み
$("#viewer").load("./inc_contentview.html", function (myData, myStatus, xhr){
//読み込み完了時の処理
I18N.i18nReplaceText();
});
});
......@@ -193,7 +199,7 @@ CONTENTSEARCH.initialScreen = function(){
///Render Content
CONTENTSEARCH.renderContent = function(id, text, division, type, order, from, to, cateid, grpid){
console.log("CONTENTSEARCH.renderContent");
//console.log("CONTENTSEARCH.renderContent");
var params = {
sid: id,
......@@ -251,7 +257,7 @@ CONTENTSEARCH.renderContent = function(id, text, division, type, order, from, to
htmlTemp = htmlTemp.replace(/\{share\}/g, shareHtml);
//ダイハツ対応
console.log("downloadHtml:" + post.download);
//console.log("downloadHtml:" + post.download);
var downloadHtml = "";
if( post.download == '1' ){
downloadHtml ='<li><a class="read button-download" contentid="' + post.contentId + '" >ダウンロード</a></li>';
......
......@@ -1093,7 +1093,7 @@ CONTENTVIEW.changePage = function(page_index) {
/* add event draw on canvas */
CONTENTVIEW.drawOnCanvas = function() {
console.log("CONTENTVIEW.drawOnCanvas start");
//console.log("CONTENTVIEW.drawOnCanvas start");
CONTENTVIEW_GENERAL.tool = new CONTENTVIEW.tool_drawing();
if (COMMON.isTouchDevice() == true) {
......@@ -4828,8 +4828,8 @@ CONTENTVIEW.imageToScreen = function(x, y) {
/* Adjust Component size */
CONTENTVIEW.sizingNotFull = function(width, height) {
console.log("CONTENTVIEW.marginY:" + CONTENTVIEW.marginY);
console.log("CONTENTVIEW.marginX:" + CONTENTVIEW.marginX);
//console.log("CONTENTVIEW.marginY:" + CONTENTVIEW.marginY);
//console.log("CONTENTVIEW.marginX:" + CONTENTVIEW.marginX);
//START TRB
if(CONTENTVIEW.isMediaAndHTMLContent()){
......@@ -5329,21 +5329,21 @@ CONTENTVIEW.changeScale = function(scale) {
//console.log("zoomX.Y " + zoomX + "," + zoomY);
//詳細ログ作成
var objectLog = new ObjectLogEntity();
objectLog.contentid = CONTENTVIEW_GENERAL.contentID;
objectLog.pageNo = CONTENTVIEW_GETDATA.getPageIndex() + 1; //0始まりのページ番号
objectLog.objectId = 0;
objectLog.resourceId = "";
objectLog.mediaType = "";
objectLog.actionType = "101"; //拡大アクション定数
objectLog.actionValue = "";
objectLog.actionTime = "0";
objectLog.locationX = zoomX;
objectLog.locationY = zoomY;
objectLog.locationHeight = "";
objectLog.locationWidth = "";
objectLog.eventType = "5"; //暫定でピンチアウト
COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//var objectLog = new ObjectLogEntity();
//objectLog.contentid = CONTENTVIEW_GENERAL.contentID;
//objectLog.pageNo = CONTENTVIEW_GETDATA.getPageIndex() + 1; //0始まりのページ番号
//objectLog.objectId = 0;
//objectLog.resourceId = "";
//objectLog.mediaType = "";
//objectLog.actionType = "101"; //拡大アクション定数
//objectLog.actionValue = "";
//objectLog.actionTime = "0";
//objectLog.locationX = zoomX;
//objectLog.locationY = zoomY;
//objectLog.locationHeight = "";
//objectLog.locationWidth = "";
//objectLog.eventType = "5"; //暫定でピンチアウト
//COMMON.SetObjectLog(CONTENTVIEW_GENERAL.contentID, objectLog);
//---
}
......@@ -5474,6 +5474,42 @@ CONTENTVIEW.screenMove = function(){
CONTENTVIEW.ready();
;}
//戻る処理
CONTENTVIEW.screenBack = function(){
$("#viewer").hide();
if( $('#bookshelf').length || $('#list').length ){
HOME.cssInit();
$("#header-ws").show();
$("#ws-body").show();
$("#topcontrol").show();
document.title = I18N.i18nText('dspHome') + ' | ' + I18N.i18nText('sysAppTitle');
} else if( $('#bookmark').length ){
BOOKMARK.cssInit();
$("#header-ws").show();
$("#ws-body").show();
$("#topcontrol").show();
document.title = I18N.i18nText('dspShiori') + ' | ' + I18N.i18nText('sysAppTitle');
} else if( $('#history').length ){
HISTORY.cssInit();
$("#header-ws").show();
$("#ws-body").show();
$("#topcontrol").show();
document.title = I18N.i18nText('dspViewHistory') + ' | ' + I18N.i18nText('sysAppTitle');
} else if( $('#contentsearch').length ){
CONTENTSEARCH.cssInit();
$("#header-ws").show();
$("#ws-body").show();
$("#topcontrol").show();
document.title = I18N.i18nText('txtSearchResult') + ' | ' + I18N.i18nText('sysAppTitle');
}
};
$(function () {
//CONTENTVIEW.ready();
});
......
......@@ -308,7 +308,7 @@ CONTENTVIEW_3D.get3DAction = function(lastFrame, currFrame){
};
$(function () {
CONTENTVIEW_3D.ready();
//CONTENTVIEW_3D.ready();
});
CONTENTVIEW_3D.ready = function(){
......
......@@ -71,13 +71,13 @@ CONTENTVIEW_CALLAPI.getJsonContentInfoDone = function(doneFunc){
$.when(
ajax1,ajax2,ajax3,ajax4,ajax5,ajax6,ajax7
).done(function(data1, data2, data3, data4, data5, data6, data7) {
console.log("done:data1:" + data1);
console.log("done:data2:" + data2);
console.log("done:data3:" + data3);
console.log("done:data4:" + data4);
console.log("done:data5:" + data5);
console.log("done:data6:" + data6);
console.log("done:data7:" + data7);
//console.log("done:data1:" + data1);
//console.log("done:data2:" + data2);
//console.log("done:data3:" + data3);
//console.log("done:data4:" + data4);
//console.log("done:data5:" + data5);
//console.log("done:data6:" + data6);
//console.log("done:data7:" + data7);
if(data1){
CONTENTVIEW_CALLAPI.webGetContentDataDone(data1[0]);
}
......
......@@ -14,9 +14,9 @@ CONTENTVIEW_CONTENTTYPENONE.getJsonContentInfoTyeNone = function(doneFunc) {
$.when(
ajax2,ajax3,ajax6
).done(function(data2, data3, data6) {
console.log("done:data2:" + data2);
console.log("done:data3:" + data3);
console.log("done:data6:" + data6);
//console.log("done:data2:" + data2);
//console.log("done:data3:" + data3);
//console.log("done:data6:" + data6);
if(data2){
CONTENTVIEW_CALLAPI.getSearchDataFromJsonDone(data2[0]);
}
......
......@@ -2165,12 +2165,12 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipNextPage = function () {
//#12373
//console.log("tmpScale:" + tmpScale);
if (tmpScale != 1) {
CONTENTVIEW.userScale = tmpScale;
CONTENTVIEW.changeScale(CONTENTVIEW.userScale);
CONTENTVIEW.flip();
CONTENTVIEW.checkDisableButtonZoom();
}
//if (tmpScale != 1) {
// CONTENTVIEW.userScale = tmpScale;
// CONTENTVIEW.changeScale(CONTENTVIEW.userScale);
// CONTENTVIEW.flip();
// CONTENTVIEW.checkDisableButtonZoom();
//}
}
});
......@@ -2326,12 +2326,12 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipPreviousPage = function () {
//#12373
//console.log("tmpScale:" + tmpScale);
if (tmpScale != 1) {
CONTENTVIEW.userScale = tmpScale;
CONTENTVIEW.changeScale(CONTENTVIEW.userScale);
CONTENTVIEW.flip();
CONTENTVIEW.checkDisableButtonZoom();
}
//if (tmpScale != 1) {
// CONTENTVIEW.userScale = tmpScale;
// CONTENTVIEW.changeScale(CONTENTVIEW.userScale);
// CONTENTVIEW.flip();
// CONTENTVIEW.checkDisableButtonZoom();
//}
}
});
......@@ -2482,11 +2482,11 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) {
//#12373
//console.log("tmpScale:" + tmpScale);
if (tmpScale != 1) {
CONTENTVIEW.userScale = tmpScale;
CONTENTVIEW.changeScale(CONTENTVIEW.userScale);
CONTENTVIEW.flip();
}
//if (tmpScale != 1) {
// CONTENTVIEW.userScale = tmpScale;
// CONTENTVIEW.changeScale(CONTENTVIEW.userScale);
// CONTENTVIEW.flip();
//}
}
}
......@@ -2561,11 +2561,11 @@ CONTENTVIEW_CREATEOBJECT.Transition.prototype.flipToPage = function (index) {
//#12373
//console.log("tmpScale:" + tmpScale);
if (tmpScale != 1) {
CONTENTVIEW.userScale = tmpScale;
CONTENTVIEW.changeScale(CONTENTVIEW.userScale);
CONTENTVIEW.flip();
}
//if (tmpScale != 1) {
// CONTENTVIEW.userScale = tmpScale;
// CONTENTVIEW.changeScale(CONTENTVIEW.userScale);
// CONTENTVIEW.flip();
//}
}
});
......@@ -2954,7 +2954,7 @@ CONTENTVIEW_CREATEOBJECT.createPageBGM = function(){
//END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
$(function () {
CONTENTVIEW_CREATEOBJECT.ready();
//CONTENTVIEW_CREATEOBJECT.ready();
});
CONTENTVIEW_CREATEOBJECT.ready = function(){
......
......@@ -1396,13 +1396,13 @@ CONTENTVIEW_EVENTS.mouseUp_CanvasMain = function(event) {
CONTENTVIEW_EVENTS.imgBack_click = function() {
console.log("CONTENTVIEW_EVENTS.imgBack_click");
//console.log("CONTENTVIEW_EVENTS.imgBack_click");
/* set end log */
COMMON.SetEndLog(CONTENTVIEW_GENERAL.contentID);
COMMON.RegisterLog();
window.onbeforeunload = null;
//window.onbeforeunload = null;
//画面クリア
CONTENTVIEW_INITOBJECT.clearViewerComponent();
......@@ -1422,29 +1422,8 @@ CONTENTVIEW_EVENTS.imgBack_click = function() {
// window.history.back();
//}
//試験
$("#viewer").hide();
if( $('#bookshelf').length || $('#list').length ){
HOME.cssInit();
$("#header-ws").show();
$("#ws-body").show();
$("#topcontrol").show();
} else if( $('#bookmark').length ){
BOOKMARK.cssInit();
$("#header-ws").show();
$("#ws-body").show();
$("#topcontrol").show();
} else if( $('#history').length ){
HISTORY.cssInit();
$("#header-ws").show();
$("#ws-body").show();
$("#topcontrol").show();
} else if( $('#contentsearch').length ){
CONTENTSEARCH.cssInit();
$("#header-ws").show();
$("#ws-body").show();
$("#topcontrol").show();
}
//元の画面に戻って画面復帰
CONTENTVIEW.screenBack();
}
} else {
/*check back */
......@@ -1454,13 +1433,8 @@ CONTENTVIEW_EVENTS.imgBack_click = function() {
// window.history.back();
//}
console.log("bbb");
//試験
$("#viewer").hide();
HOME.cssInit();
$("#header-ws").show();
$("#ws-body").show();
$("#topcontrol").show();
//元の画面に戻って画面復帰
CONTENTVIEW.screenBack();
}
......@@ -2530,7 +2504,7 @@ TransitionObject.prototype.processNaviPage = function (currPos) {
CONTENTVIEW_EVENTS._transitionObject = new TransitionObject();
$(function () {
CONTENTVIEW_EVENTS.ready();
//CONTENTVIEW_EVENTS.ready();
});
CONTENTVIEW_EVENTS.ready = function(){
......@@ -2558,4 +2532,3 @@ CONTENTVIEW_EVENTS.ready = function(){
};
......@@ -372,7 +372,7 @@ CONTENTVIEW_FILESYSTEM.errorHandler = function(e) {
};
$(function () {
CONTENTVIEW_FILESYSTEM.ready();
//CONTENTVIEW_FILESYSTEM.ready();
});
CONTENTVIEW_FILESYSTEM.ready = function(){
......
......@@ -380,7 +380,7 @@ CONTENTVIEW_GENERAL.hideDialog = function() {
};
$(function () {
CONTENTVIEW_GENERAL.ready();
//CONTENTVIEW_GENERAL.ready();
});
CONTENTVIEW_GENERAL.ready = function(){
......
......@@ -1064,14 +1064,10 @@ CONTENTVIEW_GETDATA.getContentID = function() {
/* init contentID */
if (ClientData.common_preContentId()) {
console.log("111");
CONTENTVIEW_GENERAL.contentID = ClientData.common_preContentId();
ClientData.common_preContentId(null);
} else if (ClientData.IsJumpBack() == true) {
console.log("222");
var dataJump = ClientData.JumpQueue();
CONTENTVIEW_GENERAL.contentID = dataJump[dataJump.length - 1].oldContentID;
......@@ -1081,12 +1077,10 @@ console.log("222");
}
} else {
CONTENTVIEW_GENERAL.contentID = ClientData.contentInfo_contentId();
console.log("333:" + CONTENTVIEW_GENERAL.contentID);
}
//console.log("CONTENTVIEW_GENERAL.contentID:" + CONTENTVIEW_GENERAL.contentID);
};
//Download resource
......@@ -1580,9 +1574,9 @@ CONTENTVIEW_GETDATA.switchCanvas = function(nav){
CONTENTVIEW.destRect = CONTENTVIEW.destRectNext;
//#12373
CONTENTVIEW.userScale = 1;
CONTENTVIEW.changeScale(CONTENTVIEW.userScale);
CONTENTVIEW.flip();
//CONTENTVIEW.userScale = 1;
//CONTENTVIEW.changeScale(CONTENTVIEW.userScale);
//CONTENTVIEW.flip();
//#12373
//END TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
}
......@@ -1618,7 +1612,7 @@ CONTENTVIEW_GETDATA.switchCanvas = function(nav){
CONTENTVIEW.destRect = CONTENTVIEW.destRectPrev;
//#12373
CONTENTVIEW.userScale = 1;
//CONTENTVIEW.userScale = 1;
//#12373
CONTENTVIEW.changeScale(CONTENTVIEW.userScale);
CONTENTVIEW.flip();
......
......@@ -206,7 +206,7 @@ CONTENTVIEW_GOMU.touchStart_BtnCancel_Gomu = function(e){
// Setting dialog
$(function () {
CONTENTVIEW_GOMU.ready();
//CONTENTVIEW_GOMU.ready();
});
CONTENTVIEW_GOMU.ready = function(){
......
......@@ -457,7 +457,7 @@ CONTENTVIEW_IMAGEPREVIEW.handleDispNextPrevButton = function(){
};
$(function () {
CONTENTVIEW_IMAGEPREVIEW.ready();
//CONTENTVIEW_IMAGEPREVIEW.ready();
});
CONTENTVIEW_IMAGEPREVIEW.ready = function(){
......
......@@ -119,17 +119,17 @@ CONTENTVIEW_MAKER.Maker_handleColorPickerEvent = function (){
}
});
//$('#dlgMaker .colorpicker').live('click', CONTENTVIEW_MAKER.Maker_colorPickerClickFunction);
$("#dlgMaker .colorpicker").on({
'click touchend': function(ev){
CONTENTVIEW_MAKER.Maker_colorPickerClickFunction(ev);
return false;
},
'touchstart touchmove': function(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return false;
}
});
$('#dlgMaker .colorpicker').live('click', CONTENTVIEW_MAKER.Maker_colorPickerClickFunction);
//$("#dlgMaker .colorpicker").on({
// 'click touchend': function(ev){
// CONTENTVIEW_MAKER.Maker_colorPickerClickFunction(ev);
// return false;
// },
// 'touchstart touchmove': function(){
// //これを入れないと次にダイアログを開くと表示位置が大きくズレる
// return false;
// }
//});
};
......@@ -361,7 +361,7 @@ CONTENTVIEW_MAKER.Maker_colorWrapperMouseLeaveFunction = function() {
};
$(function () {
CONTENTVIEW_MAKER.ready();
//CONTENTVIEW_MAKER.ready();
});
CONTENTVIEW_MAKER.ready = function(){
......
......@@ -459,7 +459,7 @@ CONTENTVIEW_MARKING.ShowMarking = function() {
// Setting dialog
$(function () {
CONTENTVIEW_MARKING.ready();
//CONTENTVIEW_MARKING.ready();
});
CONTENTVIEW_MARKING.ready = function(){
......
......@@ -8,7 +8,7 @@ CONTENTVIEW_MEMO.createMemoDialog = function(){
CONTENTVIEW_MEMO.targetDiv.append(
'<aside id="memoWrapper" class="MemoIndexBox">'
+ ' <h1 class="indexBoxHd">' + I18N.i18nText('txtMemo')
+' <a class="delete"></a>'
+' <a id="memoClosing2" class="delete"></a>'
+' </h1>'
+' <div id="memoArea" class="indexBoxBody_on">'
+' <textarea id="txaMemoContent" style="resize: none; height: 302px; width: 452px; margin-bottom: 10px"></textarea>'
......@@ -295,7 +295,7 @@ CONTENTVIEW_MEMO.editJqueryUIDialog = function(){
};
$(function () {
CONTENTVIEW_MEMO.ready();
//CONTENTVIEW_MEMO.ready();
});
CONTENTVIEW_MEMO.ready = function(){
......
......@@ -125,17 +125,17 @@ CONTENTVIEW_PEN.Pen_handleColorPickerEvent = function() {
}
});
//$('#dlgPen .colorpicker').live('click', CONTENTVIEW_PEN.Pen_colorPickerClickFunction);
$("#dlgPen .colorpicker").on({
'click touchend': function(ev){
CONTENTVIEW_PEN.Pen_colorPickerClickFunction(ev);
return false;
},
'touchstart touchmove': function(){
//これを入れないと次にダイアログを開くと表示位置が大きくズレる
return false;
}
});
$('#dlgPen .colorpicker').live('click', CONTENTVIEW_PEN.Pen_colorPickerClickFunction);
//$("#dlgPen .colorpicker").on({
// 'click touchend': function(ev){
// CONTENTVIEW_PEN.Pen_colorPickerClickFunction(ev);
// return false;
// },
// 'touchstart touchmove': function(){
// //これを入れないと次にダイアログを開くと表示位置が大きくズレる
// return false;
// }
//});
};
......@@ -366,7 +366,7 @@ CONTENTVIEW_PEN.Pen_colorWrapperMouseLeaveFunction = function() {
};
$(function () {
CONTENTVIEW_PEN.ready();
//CONTENTVIEW_PEN.ready();
});
CONTENTVIEW_PEN.ready = function(){
......
......@@ -114,7 +114,7 @@ CONTENTVIEW_POPUPTEXT.MailTo = function(email, subject) {
};
$(function () {
CONTENTVIEW_POPUPTEXT.ready();
//CONTENTVIEW_POPUPTEXT.ready();
});
CONTENTVIEW_POPUPTEXT.ready = function(){
......
......@@ -116,6 +116,12 @@ $(document).ready(function(){
});
});
//ビューア、共有表示パーツ読み込み
$("#viewer").load("./inc_contentview.html", function (myData, myStatus, xhr){
//読み込み完了時の処理
I18N.i18nReplaceText();
});
});
//Call API
......@@ -184,7 +190,7 @@ HISTORY.renderContent = function(id, text, division, type, order, from, to, cate
htmlTemp = htmlTemp.replace(/\{share\}/g, shareHtml);
//ダイハツ対応
console.log("post.download:" + post.download);
//console.log("post.download:" + post.download);
var downloadHtml = "";
if( post.download == '1' ){
downloadHtml ='<li><a class="read button-download" contentid="' + post.contentId + '" >ダウンロード</a></li>';
......@@ -1401,7 +1407,7 @@ HISTORY.renderContentAfterSort = function(contentSortArr){
htmlTemp = htmlTemp.replace(/\{share\}/g, shareHtml);
//ダイハツ対応
console.log("post.download2:" + post.download);
//console.log("post.download2:" + post.download);
var downloadHtml = "";
if( post.download == '1' ){
downloadHtml ='<li><a class="read button-download" contentid="' + post.contentId + '" >ダウンロード</a></li>';
......
......@@ -265,11 +265,15 @@ $(document).ready(function () {
});
});
//ビューア、共有表示パーツ読み込み
$("#viewer").load("./inc_contentview.html", function (myData, myStatus, xhr){
//読み込み完了時の処理
I18N.i18nReplaceText();
});
});
//グループ認証ここか
//グループ認証ここか
HOME.showDlgAuthCode = function(e){
if( ClientData.authCode() == "" ){
COMMON.lockLayout();
......@@ -277,6 +281,7 @@ HOME.showDlgAuthCode = function(e){
$('#inputAuthCode').val('');
$('#dlgAuthCode').show();
$('#dlgAuthCode').center();
$('#inputAuthCode').focus();
}
};
HOME.authCodeOkFunction = function(e){
......@@ -295,8 +300,7 @@ HOME.authCodeOkFunction = function(e){
function (data) {
if (data.result) {
alert("data.result:"+data.result);
//alert("data.result:"+data.result);
if("ok" == data.result){
//authCode有効
//画面再描画
......@@ -572,10 +576,9 @@ HOME.canvasClickFunction = function(e) {
};
HOME.canvasClickFunction_callback = function(outputId)
{
HOME.canvasClickFunction_callback = function(outputId){
console.log("HOME.canvasClickFunction_callback:" + outputId);
//console.log("HOME.canvasClickFunction_callback:" + outputId);
var date = new Date();
var month = date.getMonth() + 1;
......
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