Commit 7caab182 by vietdo

#16040 Web版 サービスオプション「PDF内容のテキストコピー」対応

parent 4eebf66c
......@@ -191,6 +191,8 @@ COMMON.Keys = {
serviceOpt_force_pw_change_periodically: 'force_pw_change_periodically',
// Session:事業者オプション(serviceOpt)_メモ・マーキングデータバックアップ使用:Char(Y:可能, N:不可)
serviceOpt_user_data_backup: 'user_data_backup',
// Session:事業者オプション(serviceOpt)_テキストコピー機能使用:Char(Y:可能, N:不能)
serviceOpt_copy_text: 'copy_text',
// Session :事業者オプション(serviceOpt)_マーキング機能使用:Char(Y:可能, N:不可)
serviceOpt_marking: 'marking',
// No.8: do not use this value: serviceOpt_force_login_periodically
......@@ -1194,6 +1196,14 @@ var ClientData = {
}
},
// Session:事業者オプション(serviceOpt)_テキストコピー機能使用:Char(Y:可能, N:不可)
serviceOpt_copy_text: function (data) {
if (arguments.length > 0) {
SessionStorageUtils.set(COMMON.Keys.serviceOpt_copy_text, data);
} else {
return SessionStorageUtils.get(COMMON.Keys.serviceOpt_copy_text);
}
},
// Session :事業者オプション(serviceOpt)_マーキング機能使用:Char(Y:可能, N:不可)
serviceOpt_marking: function (data) {
if (arguments.length > 0) {
......
......@@ -3775,9 +3775,15 @@ CONTENTVIEW.enableControlsCopyMemo = function() {
if(CONTENTVIEW_GENERAL.contentType == COMMON.ContentTypeKeys.Type_PDF){
$('#listindex').bind('click', CONTENTVIEW_EVENTS.showListPageIndex);
$('#listindex').removeClass();
if(ClientData.serviceOpt_copy_text() == 'Y') {
$('#copytext').bind('click', CONTENTVIEW_EVENTS.showCopyText);
$('#copytext').removeClass();
} else {
$('#copytext').unbind('click');
$('#copytext').removeClass();
$('#copytext').addClass('copy_off');
}
//sessionStorage.removeItem('copy_text');
}
//Start Function : No.12 - Editor : Long - Date : 08/28/2013 - Summary :
......
......@@ -177,8 +177,17 @@ CONTENTVIEW_GENERAL.enableAllControl = function() {
$('#listindex').bind('click', CONTENTVIEW_EVENTS.showListPageIndex);
$('#listindex').removeClass();
if(ClientData.serviceOpt_copy_text() == 'Y') {
$('#copytext').bind('click', CONTENTVIEW_EVENTS.showCopyText);
$('#copytext').removeClass();
} else {
$('#copytext').unbind('click');
$('#copytext').removeClass();
$('#copytext').addClass('copy_off');
}
// sessionStorage.removeItem('copy_text');
// $('#copytext').bind('click', CONTENTVIEW_EVENTS.showCopyText);
// $('#copytext').removeClass();
}
//End Function: No.12
......
......@@ -176,7 +176,16 @@ CONTENTVIEW_INITOBJECT.initPage = function() {
$('#divSearchResult li').die();
$('#divSearchResult li').live('click', CONTENTVIEW_EVENTS.clickSearchDetail);
/* copy text */
if(ClientData.serviceOpt_copy_text() == 'Y') {
$('#copytext').click(CONTENTVIEW_EVENTS.showCopyText);
} else {
$('#copytext').unbind('click');
$('#copytext').removeClass();
$('#copytext').addClass('copy_off');
}
// sessionStorage.removeItem('copy_text');
/* close copy text dialog */
//$("#copyTextClosing").click(CONTENTVIEW_EVENTS.closeCopyTextBox);
$("#copyTextClosing").on({
......
......@@ -79,7 +79,6 @@ LOGIN.saveLoginInfo = function(paramLid, paramP, accountPath) {
ClientData.userInfo_sid_local_bak(LOGIN.userinfo_sid);
LOGIN.saveServiceUserOption();
//ページジャンプ設定をクリア
ClientData.JumpQueue([]);
ClientData.IsJumpBack(false);
......@@ -486,13 +485,15 @@ LOGIN.saveServiceUserOption = function(){
else if (option.serviceOptionId == 28) {
ClientData.serviceOpt_user_data_backup(option.value);
}
else if (option.serviceOptionId == 42) {
ClientData.serviceOpt_copy_text(option.value);
}
else if (option.serviceOptionId == 60) {
ClientData.serviceOpt_web_screen_lock(option.value);
}
else if (option.serviceOptionId == 61) {
ClientData.serviceOpt_web_screen_lock_wait(option.value);
}
else if( option.serviceOptionId == 70) {
ClientData.serviceOpt_catalog_edition(option.value);
}
......@@ -642,6 +643,7 @@ LOGIN.initLoginAnonymousUser = function() {
// save service user option
LOGIN.saveServiceUserOption();
// hide splash screen then move to home page
$('#anonymous').fadeOut('slow', 'swing', function () {
//カタログエディション対応判定
......
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