Commit 6ba272bc by Masaru Abe

i18n.jsのリファクタリング

parent d48d9121
...@@ -752,7 +752,7 @@ function showSystemError() { ...@@ -752,7 +752,7 @@ function showSystemError() {
} }
// create DOM element for showing error message // create DOM element for showing error message
var errMes = i18nText('sysErrorCallApi01'); var errMes = I18N.i18nText('sysErrorCallApi01');
var tags = '<div id="avw-sys-error"></div>'; var tags = '<div id="avw-sys-error"></div>';
//$('body').prepend(tags); //$('body').prepend(tags);
$('body').append(tags); $('body').append(tags);
...@@ -830,7 +830,7 @@ function avwSetLogoutNortice() { ...@@ -830,7 +830,7 @@ function avwSetLogoutNortice() {
} else { } else {
// メッセージ表示 // メッセージ表示
// FFでは、https://bugzilla.mozilla.org/show_bug.cgi?id=588292 によりメッセージが出力されない // FFでは、https://bugzilla.mozilla.org/show_bug.cgi?id=588292 によりメッセージが出力されない
var message = i18nText('sysInfoWithoutLogout'); var message = I18N.i18nText('sysInfoWithoutLogout');
var e = event || window.event; var e = event || window.event;
if(e) { if(e) {
e.returnValue = message; e.returnValue = message;
......
/// <reference path="avweb.js" /> /**
/// <reference path="screenLock.js" /> * ABook Viewer for WEB
/// <reference path="common.js" /> * common package
/// <reference path="i18n.js" /> *
/// <reference path="jquery-1.8.1.min.js" /> * Copyright (C) Agentec Co, Ltd. All rights reserved.
/// <reference path="jquery-ui-1.8.23.custom.min.js" /> */
/// <reference path="jquery.toastmessage.js" />
/// <reference path="pageViewer.js" />
/// <reference path="uuid.js" />
//グローバルの名前空間用のオブジェクトを用意する //グローバルの名前空間用のオブジェクトを用意する
var COMMON = {}; var COMMON = {};
...@@ -2059,12 +2056,12 @@ COMMON.LockScreen = function() { ...@@ -2059,12 +2056,12 @@ COMMON.LockScreen = function() {
} }
var timeWaitLockScreen = COMMON.getTimeWaitLockScreen(); var timeWaitLockScreen = COMMON.getTimeWaitLockScreen();
if (timeWaitLockScreen > 0) { if (timeWaitLockScreen > 0) {
//var message = i18nText("sysInfoScrLock01"); //var message = I18N.i18nText("sysInfoScrLock01");
screenLock({ screenLock({
timeout: timeWaitLockScreen, timeout: timeWaitLockScreen,
html: '<img src="img/1222.png" alt="Screen Lock" /><br />', //+ message, html: '<img src="img/1222.png" alt="Screen Lock" /><br />', //+ message,
unlockFunc: COMMON.unlockFunction, unlockFunc: COMMON.unlockFunction,
errorMessage: i18nText('msgLoginErrWrong') errorMessage: I18N.i18nText('msgLoginErrWrong')
}); });
} }
......
...@@ -10,54 +10,57 @@ ...@@ -10,54 +10,57 @@
* Copyright (C) Agentec Co, Ltd. All rights reserved. * Copyright (C) Agentec Co, Ltd. All rights reserved.
*/ */
//グローバルの名前空間用のオブジェクトを用意する
var I18N = {};
/** /**
* 定数:言語ファイル配置場所 * 定数:言語ファイル配置場所
*/ */
var avwsys_location = ""; I18N.avwsys_location = "";
var avwsys_dir = ""; I18N.avwsys_dir = "";
var avwsys_storagekey = ""; I18N.avwsys_storagekey = "";
var avwsys_currLang = ""; I18N.avwsys_currLang = "";
/* 言語の初期化 */ /* 言語の初期化 */
$(function() { $(function() {
initi18n(); I18N.initi18n();
}); });
/** 言語リソース設定初期化 */ /** 言語リソース設定初期化 */
function initi18n(){ I18N.initi18n = function(){
avwsys_location = "/common/json/lang"; I18N.avwsys_location = "/common/json/lang";
avwsys_dir = "/abvw"; I18N.avwsys_dir = "/abvw";
avwsys_storagekey = "AVWUS_Lang"; I18N.avwsys_storagekey = "AVWUS_Lang";
avwsys_currLang = "AVW_CurrLang"; I18N.avwsys_currLang = "AVW_CurrLang";
// ログイン画面/直接アクセス対策 // ログイン画面/直接アクセス対策
var location = window.location.toString().toLowerCase(); var location = window.location.toString().toLowerCase();
if (location.indexOf(avwsys_dir) < 0) { if (location.indexOf(I18N.avwsys_dir) < 0) {
// avwsys_dirディレクトリ配下ではない場合は、avwsys_dirディレクトリをつける // I18N.avwsys_dirディレクトリ配下ではない場合は、I18N.avwsys_dirディレクトリをつける
avwsys_location = "." + avwsys_dir + avwsys_location; I18N.avwsys_location = "." + I18N.avwsys_dir + I18N.avwsys_location;
} else { } else {
// avwsys_dirディレクトリ配下の場合は、相対パスに変換 // I18N.avwsys_dirディレクトリ配下の場合は、相対パスに変換
avwsys_location = "." + avwsys_location; I18N.avwsys_location = "." + I18N.avwsys_location;
} }
var lang = "en"; var lang = "en";
var storage = window.localStorage; var storage = window.localStorage;
if(storage) { if(storage) {
var lang = storage.getItem(avwsys_storagekey); var lang = storage.getItem(I18N.avwsys_storagekey);
if(!lang) { if(!lang) {
lang = getNavigatorLanguage(); lang = I18N.getNavigatorLanguage();
} }
} }
// 言語ファイルを初期化する // 言語ファイルを初期化する
loadLanguage(lang); I18N.loadLanguage(lang);
} };
/* ブラウザの言語設定を取得する */ /* ブラウザの言語設定を取得する */
function getNavigatorLanguage() { I18N.getNavigatorLanguage = function() {
var lang = (navigator.browserLanguage || navigator.language || navigator.userLanguage); var lang = (navigator.browserLanguage || navigator.language || navigator.userLanguage);
/* 対応言語 */ /* 対応言語 */
var languages = ['ja','ko','en']; // 対応言語を増やす場合はここを変更する var languages = ['ja','ko','en']; // 対応言語を増やす場合はここを変更する
...@@ -76,14 +79,14 @@ function getNavigatorLanguage() { ...@@ -76,14 +79,14 @@ function getNavigatorLanguage() {
}; };
/* 言語リソースファイル読み込み */ /* 言語リソースファイル読み込み */
function loadLanguage(lang) { I18N.loadLanguage = function(lang) {
// 引数から言語ファイルを選択 // 引数から言語ファイルを選択
var langfile = "lang-" + lang + ".json"; var langfile = "lang-" + lang + ".json";
// 言語ファイルを読み込む // 言語ファイルを読み込む
$.ajax({ $.ajax({
url: avwsys_location + "/" + langfile, url: I18N.avwsys_location + "/" + langfile,
async: false, async: false,
dataType: 'json', dataType: 'json',
cache: false, cache: false,
...@@ -93,7 +96,7 @@ function loadLanguage(lang) { ...@@ -93,7 +96,7 @@ function loadLanguage(lang) {
// html の言語データを書換える // html の言語データを書換える
var jsonLangData = data; var jsonLangData = data;
replaceText(jsonLangData); I18N.replaceText(jsonLangData);
// 言語設定、言語データをストレージにキャッシュしておく // 言語設定、言語データをストレージにキャッシュしておく
storeCurrentLanguage(lang, jsonLangData); storeCurrentLanguage(lang, jsonLangData);
...@@ -107,7 +110,7 @@ function loadLanguage(lang) { ...@@ -107,7 +110,7 @@ function loadLanguage(lang) {
}; };
/* ページ内のテキストをすべて言語に合わせて置換する */ /* ページ内のテキストをすべて言語に合わせて置換する */
function replaceText(jsonLangData) { I18N.replaceText = function(jsonLangData) {
var itemCount = $('.lang').length; var itemCount = $('.lang').length;
if(itemCount > 0) { if(itemCount > 0) {
...@@ -130,22 +133,24 @@ function replaceText(jsonLangData) { ...@@ -130,22 +133,24 @@ function replaceText(jsonLangData) {
} }
} }
}; };
/* 現在設定されている言語でHTMLテキストを置き換える */ /* 現在設定されている言語でHTMLテキストを置き換える */
function i18nReplaceText() { I18N.i18nReplaceText = function() {
var storage = window.sessionStorage; var storage = window.sessionStorage;
if(storage) { if(storage) {
var value = storage.getItem(avwsys_storagekey); var value = storage.getItem(I18N.avwsys_storagekey);
if(value) { if(value) {
var json = JSON.parse(value); var json = JSON.parse(value);
replaceText(json); I18N.replaceText(json);
} }
} }
}; };
/* キーから文字列を取得 */ /* キーから文字列を取得 */
function i18nText(key) { I18N.i18nText = function(key) {
var storage = window.sessionStorage; var storage = window.sessionStorage;
if(storage) { if(storage) {
var value = storage.getItem(avwsys_storagekey); var value = storage.getItem(I18N.avwsys_storagekey);
if(value) { if(value) {
var json = JSON.parse(value); var json = JSON.parse(value);
return getLangText(json, key); return getLangText(json, key);
...@@ -169,11 +174,11 @@ function changeLanguage(lang) { ...@@ -169,11 +174,11 @@ function changeLanguage(lang) {
// 言語の切替を行った場合のみ選択言語をストアする // 言語の切替を行った場合のみ選択言語をストアする
var storage = window.localStorage; var storage = window.localStorage;
if(storage) { if(storage) {
storage.setItem(avwsys_storagekey, lang); storage.setItem(I18N.avwsys_storagekey, lang);
} }
// 言語ファイルを読み込み、テキスト文字列を変換する // 言語ファイルを読み込み、テキスト文字列を変換する
loadLanguage(lang); I18N.loadLanguage(lang);
}; };
/* 設定言語の保存 */ /* 設定言語の保存 */
...@@ -181,9 +186,9 @@ function storeCurrentLanguage(lang, langData) { ...@@ -181,9 +186,9 @@ function storeCurrentLanguage(lang, langData) {
var ss = window.sessionStorage; var ss = window.sessionStorage;
if(ss) { if(ss) {
// language data // language data
ss.setItem(avwsys_storagekey, JSON.stringify(langData)); ss.setItem(I18N.avwsys_storagekey, JSON.stringify(langData));
// current language // current language
ss.setItem(avwsys_currLang, lang); ss.setItem(I18N.avwsys_currLang, lang);
} }
}; };
/* 設定言語の取得 */ /* 設定言語の取得 */
...@@ -191,10 +196,10 @@ function getCurrentLanguage() { ...@@ -191,10 +196,10 @@ function getCurrentLanguage() {
var lang; var lang;
var storage = window.sessionStorage; var storage = window.sessionStorage;
if(storage) { if(storage) {
lang = storage.getItem(avwsys_currLang); lang = storage.getItem(I18N.avwsys_currLang);
} }
if(!lang) { if(!lang) {
lang = getNavigatorLanguage(); lang = I18N.getNavigatorLanguage();
} }
return lang; return lang;
}; };
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* <https://raw.github.com/stevenbenner/jquery-powertip/master/LICENSE.txt> * <https://raw.github.com/stevenbenner/jquery-powertip/master/LICENSE.txt>
*/ */
/// <reference path="i18n.js" /> //Add custom i18n.js
(function($) { (function($) {
'use strict'; 'use strict';
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
dataElem = $this.data('powertipjq'), dataElem = $this.data('powertipjq'),
dataTarget = $this.data('powertiptarget'), dataTarget = $this.data('powertiptarget'),
//title = $this.attr('title'); //title = $this.attr('title');
title = i18nText($this.attr('lang')); title = I18N.i18nText($this.attr('lang'));
// attempt to use title attribute text if there is no data-powertip, // attempt to use title attribute text if there is no data-powertip,
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
* *
*/ */
//Add custom i18n.js
;(function($) { ;(function($) {
// TODO rewrite as a widget, removing all the extra plugins // TODO rewrite as a widget, removing all the extra plugins
...@@ -514,7 +516,7 @@ function TreeView() { ...@@ -514,7 +516,7 @@ function TreeView() {
var tree = this; var tree = this;
tree.Id = containerId; tree.Id = containerId;
var newItem = new TreeNode(); var newItem = new TreeNode();
newItem.Text = i18nText('txtAll'); newItem.Text = I18N.i18nText('txtAll');
newItem.Id = "all"; newItem.Id = "all";
newItem.IsCategory = false; newItem.IsCategory = false;
newItem.ContentCount = this.TotalCount; newItem.ContentCount = this.TotalCount;
......
...@@ -160,9 +160,9 @@ removeLockState(); ...@@ -160,9 +160,9 @@ removeLockState();
var tags = '<div id="' + elmId + '" class="screenLock">' + var tags = '<div id="' + elmId + '" class="screenLock">' +
'<div style="display:table; width:100%; height:100%;">' + '<div style="display:table; width:100%; height:100%;">' +
'<div style="display:table-cell; text-align:center; vertical-align:middle;">' + '<div style="display:table-cell; text-align:center; vertical-align:middle;">' +
'<p class="screenLock-content">' + html + i18nText('sysInfoScrLock01') + '</p>' + '<p class="screenLock-content">' + html + I18N.i18nText('sysInfoScrLock01') + '</p>' +
'<div id="pw" style="display:none;">' + '<div id="pw" style="display:none;">' +
'<input id="passwd-txt" placeholder="'+i18nText('sysLockScrPwdInput')+'" type="password" value="" />&nbsp;' + '<input id="passwd-txt" placeholder="'+ I18N.i18nText('sysLockScrPwdInput')+'" type="password" value="" />&nbsp;' +
'<button id="unlock-btn">OK</button>' + '<button id="unlock-btn">OK</button>' +
'<div id="screenLockErrMsg" class="screenLock-error" style="display:none;">' + errorMessage + '</div>' + '<div id="screenLockErrMsg" class="screenLock-error" style="display:none;">' + errorMessage + '</div>' +
'</div>' + '</div>' +
......
{ {
"apiUrl" : "https://web3.agentec.jp/acms/{0}/abvapi", "apiUrl1" : "https://web3.agentec.jp/acms/{0}/abvapi",
"apiUrl" : "",
"apiLoginUrl" : "https://web3.agentec.jp/acms/nuabvapi", "apiLoginUrl" : "https://web3.agentec.jp/acms/nuabvapi",
"apiResourceDlUrl" : "https://web3.agentec.jp/acms/{0}/dl", "apiResourceDlUrl" : "https://web3.agentec.jp/acms/{0}/dl",
"bookShelfCount" : 15, "bookShelfCount" : 15,
......
...@@ -8,11 +8,11 @@ function checkLimitContent(contentId, funcOk, funcCancel, isNotUnlockScreen) { ...@@ -8,11 +8,11 @@ function checkLimitContent(contentId, funcOk, funcCancel, isNotUnlockScreen) {
if (levelContent == 1) { if (levelContent == 1) {
if ($('#limit_level1').length <= 0) { if ($('#limit_level1').length <= 0) {
var html = '<section class="sectionLimitAccess" id="limit_level1">'; var html = '<section class="sectionLimitAccess" id="limit_level1">';
html += '<h1 class="lang" lang="txtContentWarning">' + i18nText("txtContentWarning") + '</h1>'; html += '<h1 class="lang" lang="txtContentWarning">' + I18N.i18nText("txtContentWarning") + '</h1>';
html += '<p class="message"></p>'; html += '<p class="message"></p>';
html += '<p class="deletebtn">'; html += '<p class="deletebtn">';
html += '<a lang="dspOK" class="ok lang">' + i18nText("dspOK") + '</a>'; html += '<a lang="dspOK" class="ok lang">' + I18N.i18nText("dspOK") + '</a>';
html += '<a lang="dspCancel" class="cancel lang">' + i18nText("dspCancel") + '</a>'; html += '<a lang="dspCancel" class="cancel lang">' + I18N.i18nText("dspCancel") + '</a>';
html += '</p>'; html += '</p>';
html += '</section>'; html += '</section>';
$('body').append(html); $('body').append(html);
...@@ -48,15 +48,15 @@ function checkLimitContent(contentId, funcOk, funcCancel, isNotUnlockScreen) { ...@@ -48,15 +48,15 @@ function checkLimitContent(contentId, funcOk, funcCancel, isNotUnlockScreen) {
if ($('#limit_level2').length <= 0) { if ($('#limit_level2').length <= 0) {
var html = '<section class="sectionLimitAccess" id="limit_level2">'; var html = '<section class="sectionLimitAccess" id="limit_level2">';
html += '<h1 class="lang" lang="txtContentPWTitle">' + i18nText("txtContentPWTitle") + '</h1>'; html += '<h1 class="lang" lang="txtContentPWTitle">' + I18N.i18nText("txtContentPWTitle") + '</h1>';
html += '<p class="message">'; html += '<p class="message">';
html += '<label class="text lang" lang="txtContentPWMsg">' + i18nText("txtContentPWMsg") + '</label>'; html += '<label class="text lang" lang="txtContentPWMsg">' + I18N.i18nText("txtContentPWMsg") + '</label>';
html += '<input type="password" />'; html += '<input type="password" />';
html += '<label class="error" id="lblMessageLimitError"></label>'; html += '<label class="error" id="lblMessageLimitError"></label>';
html += '</p>'; html += '</p>';
html += '<p class="deletebtn">'; html += '<p class="deletebtn">';
html += '<a lang="dspOK" class="ok lang">' + i18nText("dspOK") + '</a>'; html += '<a lang="dspOK" class="ok lang">' + I18N.i18nText("dspOK") + '</a>';
html += '<a lang="dspCancel" class="cancel lang">' + i18nText("dspCancel") + '</a>'; html += '<a lang="dspCancel" class="cancel lang">' + I18N.i18nText("dspCancel") + '</a>';
html += '</p>'; html += '</p>';
html += '</section>'; html += '</section>';
...@@ -100,7 +100,7 @@ function checkLimitContent(contentId, funcOk, funcCancel, isNotUnlockScreen) { ...@@ -100,7 +100,7 @@ function checkLimitContent(contentId, funcOk, funcCancel, isNotUnlockScreen) {
function () { function () {
var password = $('#limit_level2 .message input').val(); var password = $('#limit_level2 .message input').val();
if (!ValidationUtil.CheckRequiredForText(password)) { if (!ValidationUtil.CheckRequiredForText(password)) {
$('#lblMessageLimitError').html(i18nText('msgPwdEmpty')).show(); $('#lblMessageLimitError').html(I18N.i18nText('msgPwdEmpty')).show();
return; return;
} }
...@@ -130,7 +130,7 @@ function checkLimitContent(contentId, funcOk, funcCancel, isNotUnlockScreen) { ...@@ -130,7 +130,7 @@ function checkLimitContent(contentId, funcOk, funcCancel, isNotUnlockScreen) {
funcOk(); funcOk();
} }
else { else {
$('#lblMessageLimitError').html(AVWEB.format(i18nText('msgLoginErrWrong'), data.errorMessage).toString()).show(); $('#lblMessageLimitError').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), data.errorMessage).toString()).show();
} }
}, },
function (xhr, statusText, errorThrown) { function (xhr, statusText, errorThrown) {
...@@ -138,7 +138,7 @@ function checkLimitContent(contentId, funcOk, funcCancel, isNotUnlockScreen) { ...@@ -138,7 +138,7 @@ function checkLimitContent(contentId, funcOk, funcCancel, isNotUnlockScreen) {
if (xhr.responseText && xhr.status != 0) { if (xhr.responseText && xhr.status != 0) {
errorCode = JSON.parse(xhr.responseText).errorMessage; errorCode = JSON.parse(xhr.responseText).errorMessage;
} }
$('#lblMessageLimitError').html(AVWEB.format(i18nText('msgLoginErrWrong'), errorCode).toString()).show(); $('#lblMessageLimitError').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), errorCode).toString()).show();
} }
); );
......
/// しおりリスト画面 - SCRSLS0100 /// しおりリスト画面 - SCRSLS0100
/// <reference path="../common/js/avweb.js" />
/// <reference path="../common/js/screenLock.js" />
/// <reference path="../common/js/common.js" />
/// <reference path="../common/js/i18n.js" />
/// <reference path="../common/js/jquery-1.8.1.min.js" />
/// <reference path="../common/js/jquery-ui-1.8.23.custom.min.js" />
/// <reference path="../common/js/jquery.toastmessage.js" />
/// <reference path="../common/js/pageViewer.js" />
/// <reference path="init.js" />
//var TotalThread = 0;
var contentTypes = {}; var contentTypes = {};
var contentName = {}; var contentName = {};
var pathImgContentNone = './img/page-none.png'; var pathImgContentNone = './img/page-none.png';
...@@ -31,7 +11,7 @@ $(document).ready(function () { ...@@ -31,7 +11,7 @@ $(document).ready(function () {
COMMON.LockScreen(); COMMON.LockScreen();
document.title = i18nText('dspShiori') + ' | ' + i18nText('sysAppTitle'); document.title = I18N.i18nText('dspShiori') + ' | ' + I18N.i18nText('sysAppTitle');
// Set bookmark screen // Set bookmark screen
ClientData.BookmarkScreen(ScreenIds.BookmarkList); ClientData.BookmarkScreen(ScreenIds.BookmarkList);
...@@ -594,7 +574,7 @@ function insertRowError(contentid, pageTitle, pageNo) { ...@@ -594,7 +574,7 @@ function insertRowError(contentid, pageTitle, pageNo) {
newRow += " <div class='text'>"; newRow += " <div class='text'>";
newRow += ' <label class="name">' + COMMON.truncate(pageTitle, 20) + '</label>'; newRow += ' <label class="name">' + COMMON.truncate(pageTitle, 20) + '</label>';
newRow += ' <div class="info">'; newRow += ' <div class="info">';
newRow += " <label class='lang name' lang='msgShioriDeleted'>" + i18nText('msgShioriDeleted') + "</label>"; newRow += " <label class='lang name' lang='msgShioriDeleted'>" + I18N.i18nText('msgShioriDeleted') + "</label>";
newRow += " </div>"; newRow += " </div>";
newRow += " </div>"; newRow += " </div>";
...@@ -625,7 +605,7 @@ function insertRow(contentid, pageThumbnail, pageTitle, pageText, pageNo, hasMem ...@@ -625,7 +605,7 @@ function insertRow(contentid, pageThumbnail, pageTitle, pageText, pageNo, hasMem
newRow += '<div class="info">'; newRow += '<div class="info">';
newRow += '<ul class="date">'; newRow += '<ul class="date">';
newRow += '<li><label id="Label2" class="lang" lang="txtPage">' + i18nText('txtPage') + '</label><label id="Label3">' + pageNo + '</label></li>'; 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)); var contentText = COMMON.htmlEncode(COMMON.getLines(pageText, 3));
newRow += '<li><label id="Label1">' + COMMON.truncate(contentText, 80) + '</label></li>'; newRow += '<li><label id="Label1">' + COMMON.truncate(contentText, 80) + '</label></li>';
...@@ -678,7 +658,7 @@ function insertRow(contentid, pageThumbnail, pageTitle, pageText, pageNo, hasMem ...@@ -678,7 +658,7 @@ function insertRow(contentid, pageThumbnail, pageTitle, pageText, pageNo, hasMem
newRow += imgMarkingHide; newRow += imgMarkingHide;
} }
newRow += "</li>"; newRow += "</li>";
newRow += "<li><a class='read lang' name='dspRead' value='{\"contentid\":\"" + contentid + "\", \"pageNo\":\"" + pageNo + "\"}' lang='txtRead'>" + i18nText('txtRead') + "</a></li>"; newRow += "<li><a class='read lang' name='dspRead' value='{\"contentid\":\"" + contentid + "\", \"pageNo\":\"" + pageNo + "\"}' lang='txtRead'>" + I18N.i18nText('txtRead') + "</a></li>";
newRow += "</ul>"; newRow += "</ul>";
newRow += "</div>"; newRow += "</div>";
newRow += "</div>"; newRow += "</div>";
...@@ -759,14 +739,14 @@ function insertRow(contentid, pageThumbnail, pageTitle, pageText, pageNo, hasMem ...@@ -759,14 +739,14 @@ function insertRow(contentid, pageThumbnail, pageTitle, pageText, pageNo, hasMem
} }
newRow += '<li class="pageno"><label id="Label2" class="lang" lang="txtPage">' + 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="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 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'>" + i18nText('txtRead') + "</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'>" + 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>';
newRow +='</div>'; newRow +='</div>';
...@@ -967,7 +947,7 @@ function changeLanguageCallBackFunction() { ...@@ -967,7 +947,7 @@ function changeLanguageCallBackFunction() {
HEADER.setStatusSort('#dspTitleNmKn', orderSort == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#dspTitleNmKn', orderSort == Consts.ConstOrderSetting_Asc);
} }
} }
document.title = i18nText('dspShiori') + ' | ' + i18nText('sysAppTitle'); document.title = I18N.i18nText('dspShiori') + ' | ' + I18N.i18nText('sysAppTitle');
}; };
/* /*
Synchronize bookmark with server Synchronize bookmark with server
......
/// <reference path="../common/js/avweb.js" />
/// <reference path="../common/js/screenLock.js" />
/// <reference path="../common/js/common.js" />
/// <reference path="../common/js/i18n.js" />
/// <reference path="../common/js/jquery-1.8.1.min.js" />
/// <reference path="../common/js/jquery-ui-1.8.23.custom.min.js" />
/// <reference path="../common/js/jquery.toastmessage.js" />
/// <reference path="../common/js/pageViewer.js" />
/// <reference path="header.js" />
//Start Declare Variables //Start Declare Variables
//----Constant-----------// //----Constant-----------//
...@@ -62,7 +45,7 @@ $(document).ready(function(){ ...@@ -62,7 +45,7 @@ $(document).ready(function(){
COMMON.LockScreen(); COMMON.LockScreen();
document.title = i18nText('txtSearchResult') + ' | ' + i18nText('sysAppTitle'); document.title = I18N.i18nText('txtSearchResult') + ' | ' + I18N.i18nText('sysAppTitle');
// Set bookmark screen // Set bookmark screen
ClientData.BookmarkScreen(ScreenIds.ContentSearch); ClientData.BookmarkScreen(ScreenIds.ContentSearch);
...@@ -276,7 +259,7 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid) ...@@ -276,7 +259,7 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid)
+ ' <ul class="pic">' + ' <ul class="pic">'
+ ' <li><img src="' + DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentId + '" class="sticker" /></li>' + ' <li><img src="' + DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentId + '" class="sticker" /></li>'
+ ' <li><img src="' + DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentId + '" class="pen" /></li>' + ' <li><img src="' + DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentId + '" class="pen" /></li>'
+ ' <li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">'+i18nText("txtRead")+'</a></li>' + ' <li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">'+I18N.i18nText("txtRead")+'</a></li>'
+ ' </ul>' + ' </ul>'
+ ' </div>' + ' </div>'
+ ' </div>' + ' </div>'
...@@ -344,7 +327,7 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid) ...@@ -344,7 +327,7 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid)
handleBackToTop(); handleBackToTop();
//changeLanguage(ClientData.userInfo_language()); //changeLanguage(ClientData.userInfo_language());
i18nReplaceText(); I18N.i18nReplaceText();
}); });
}; };
...@@ -1759,9 +1742,9 @@ function refreshGrid(){ ...@@ -1759,9 +1742,9 @@ function refreshGrid(){
//format text display more record //format text display more record
function formatDisplayMoreRecord(){ function formatDisplayMoreRecord(){
i18nReplaceText(); I18N.i18nReplaceText();
//changeLanguage(ClientData.userInfo_language()); //changeLanguage(ClientData.userInfo_language());
$('#control-nextrecord').html(AVWEB.format(i18nText('dspViewMore'), returnNumberDispRecordForList())); $('#control-nextrecord').html(AVWEB.format(I18N.i18nText('dspViewMore'), returnNumberDispRecordForList()));
}; };
...@@ -1781,12 +1764,12 @@ function changeLanguageCallBackFunction(){ ...@@ -1781,12 +1764,12 @@ function changeLanguageCallBackFunction(){
enableSort(); enableSort();
} }
document.title = i18nText('txtSearchResult') + ' | ' + i18nText('sysAppTitle'); document.title = I18N.i18nText('txtSearchResult') + ' | ' + I18N.i18nText('sysAppTitle');
}; };
function displayResultNoRecord(){ function displayResultNoRecord(){
i18nReplaceText(); I18N.i18nReplaceText();
//$('#content-grid').html(i18nText('msgSearchNotExist')); //$('#content-grid').html(I18N.i18nText('msgSearchNotExist'));
//$('#content-grid').css({ 'text-align': 'left', 'margin-top': '20px', 'clear': 'both' }); //$('#content-grid').css({ 'text-align': 'left', 'margin-top': '20px', 'clear': 'both' });
$('#content-grid').html(''); $('#content-grid').html('');
$('#msgSearchNotExist').show(); $('#msgSearchNotExist').show();
......
/// <reference path="../common/js/jquery-ui-1.8.23.custom.min.js" />
/// <reference path="../common/js/common.js" />
/// <reference path="contentview_VarDef.js" />
/// <reference path="contentview_CallApi.js" />
/// <reference path="contentview_GetData.js" />
/// <reference path="contentview_InitObjects.js" />
/// <reference path="contentview_Events.js" />
/* change size */ /* change size */
function sizingScreen() { function sizingScreen() {
...@@ -301,7 +294,7 @@ function handleAPIWebContentPage(dataJson, pos) { ...@@ -301,7 +294,7 @@ function handleAPIWebContentPage(dataJson, pos) {
$('#bookmarkBoxHdBM').children().remove(); $('#bookmarkBoxHdBM').children().remove();
$('#bookmarkBoxHdBM').html('<a id="bookmarkClosing" class="delete" > </a>'); $('#bookmarkBoxHdBM').html('<a id="bookmarkClosing" class="delete" > </a>');
$("#bookmarkClosing").click(closeBookmarkBox); $("#bookmarkClosing").click(closeBookmarkBox);
$('#bookmarkBoxHdBM').append(i18nText('txtShioriCtnLs')); $('#bookmarkBoxHdBM').append(I18N.i18nText('txtShioriCtnLs'));
$('#boxBookMark').css('z-index', '101'); $('#boxBookMark').css('z-index', '101');
$('#boxBookMark').css('display', 'block'); $('#boxBookMark').css('display', 'block');
...@@ -332,7 +325,7 @@ function handleAPIWebContentPage(dataJson, pos) { ...@@ -332,7 +325,7 @@ function handleAPIWebContentPage(dataJson, pos) {
' <li id="' + changePageNo(bmList[nIndex].pageNo) + '">' + ' <li id="' + changePageNo(bmList[nIndex].pageNo) + '">' +
' <img id="img_bookmark_' + bmList[nIndex].pageNo + '" class="imgbox" src="' + formatStringBase64(dataStored[nStored].pageThumbnail) + '"/>' + ' <img id="img_bookmark_' + bmList[nIndex].pageNo + '" class="imgbox" src="' + formatStringBase64(dataStored[nStored].pageThumbnail) + '"/>' +
' <span class="mdltext">' + ' <span class="mdltext">' +
i18nText('txtPage') + (changePageNo(bmList[nIndex].pageNo) + 1) + '<br /> ' + I18N.i18nText('txtPage') + (changePageNo(bmList[nIndex].pageNo) + 1) + '<br /> ' +
COMMON.truncate(COMMON.htmlEncode(contentPage[nIndexBookMark].pageText), 20) + COMMON.truncate(COMMON.htmlEncode(contentPage[nIndexBookMark].pageText), 20) +
' </span>' + ' </span>' +
' </li>' ' </li>'
...@@ -364,7 +357,7 @@ function handleAPIWebContentPage(dataJson, pos) { ...@@ -364,7 +357,7 @@ function handleAPIWebContentPage(dataJson, pos) {
' <li id="' + changePageNo(bmList[nIndex].pageNo) + '">' + ' <li id="' + changePageNo(bmList[nIndex].pageNo) + '">' +
' <img id="img_bookmark_' + bmList[nIndex].pageNo + '" class="imgbox" src="img/view_loading.gif" />' + ' <img id="img_bookmark_' + bmList[nIndex].pageNo + '" class="imgbox" src="img/view_loading.gif" />' +
' <span class="mdltext">' + ' <span class="mdltext">' +
i18nText('txtPage') + (changePageNo(bmList[nIndex].pageNo) + 1) + '<br /> ' + I18N.i18nText('txtPage') + (changePageNo(bmList[nIndex].pageNo) + 1) + '<br /> ' +
COMMON.truncate(COMMON.htmlEncode(contentPage[nIndexBookMark].pageText), 20) + COMMON.truncate(COMMON.htmlEncode(contentPage[nIndexBookMark].pageText), 20) +
' </span>' + ' </span>' +
' </li>' ' </li>'
...@@ -400,12 +393,12 @@ function handleAPIWebContentPage(dataJson, pos) { ...@@ -400,12 +393,12 @@ function handleAPIWebContentPage(dataJson, pos) {
' <li id="' + changePageNo(bmList[nIndex].pageNo) + '">' + ' <li id="' + changePageNo(bmList[nIndex].pageNo) + '">' +
' <span class="mdltext">' + ' <span class="mdltext">' +
' <span>' + i18nText('txtPage') + bmList[nIndex].pageNo + '</span> <br /> ' + ' <span>' + I18N.i18nText('txtPage') + bmList[nIndex].pageNo + '</span> <br /> ' +
' </span>' + ' </span>' +
' </li>' + ' </li>' +
' <li>' + ' <li>' +
' <span class="mdltext">' + ' <span class="mdltext">' +
' <span class="error">' + i18nText('msgShioriDeleted') + '</span>' + ' <span class="error">' + I18N.i18nText('msgShioriDeleted') + '</span>' +
' </span>' + ' </span>' +
' </li>' ' </li>'
); );
...@@ -429,7 +422,7 @@ function handleAPIWebContentPage(dataJson, pos) { ...@@ -429,7 +422,7 @@ function handleAPIWebContentPage(dataJson, pos) {
' <li id="' + 0 + '">' + ' <li id="' + 0 + '">' +
' <img id="img_bookmark_' + bmList[nIndex].pageNo + '" class="imgbox" src="img/view_loading.gif" />' + ' <img id="img_bookmark_' + bmList[nIndex].pageNo + '" class="imgbox" src="img/view_loading.gif" />' +
' <span class="mdltext">' + ' <span class="mdltext">' +
i18nText('txtPage') + 1 + '<br /> ' + I18N.i18nText('txtPage') + 1 + '<br /> ' +
COMMON.truncate(COMMON.htmlEncode(contentPage.contentName), 20) + COMMON.truncate(COMMON.htmlEncode(contentPage.contentName), 20) +
' </span>' + ' </span>' +
' </li>' ' </li>'
...@@ -471,12 +464,12 @@ function handleAPIWebContentPage(dataJson, pos) { ...@@ -471,12 +464,12 @@ function handleAPIWebContentPage(dataJson, pos) {
' <li id="' + 0 + '">' + ' <li id="' + 0 + '">' +
' <span class="mdltext">' + ' <span class="mdltext">' +
' <span>' + i18nText('txtPage') + bmList[nIndex].pageNo + '</span> <br /> ' + ' <span>' + I18N.i18nText('txtPage') + bmList[nIndex].pageNo + '</span> <br /> ' +
' </span>' + ' </span>' +
' </li>' + ' </li>' +
' <li>' + ' <li>' +
' <span class="mdltext">' + ' <span class="mdltext">' +
' <span class="error">' + i18nText('msgShioriDeleted') + '</span>' + ' <span class="error">' + I18N.i18nText('msgShioriDeleted') + '</span>' +
' </span>' + ' </span>' +
' </li>' ' </li>'
); );
...@@ -490,7 +483,7 @@ function handleAPIWebContentPage(dataJson, pos) { ...@@ -490,7 +483,7 @@ function handleAPIWebContentPage(dataJson, pos) {
' <li id="' + changePageNo(bmList[nIndex].pageNo) + '">' + ' <li id="' + changePageNo(bmList[nIndex].pageNo) + '">' +
' <img id="img_bookmark_' + bmList[nIndex].pageNo + '" class="imgbox" src="img/view_loading.gif" />' + ' <img id="img_bookmark_' + bmList[nIndex].pageNo + '" class="imgbox" src="img/view_loading.gif" />' +
' <span class="mdltext">' + ' <span class="mdltext">' +
i18nText('txtPage') + bmList[nIndex].pageNo + '<br /> ' + I18N.i18nText('txtPage') + bmList[nIndex].pageNo + '<br /> ' +
//COMMON.truncate(COMMON.htmlEncode(contentPage.contentName), 20) + //COMMON.truncate(COMMON.htmlEncode(contentPage.contentName), 20) +
' </span>' + ' </span>' +
' </li>' ' </li>'
...@@ -620,7 +613,7 @@ function handleCopyTextData(data, pos) { ...@@ -620,7 +613,7 @@ function handleCopyTextData(data, pos) {
if (sPageText == '') { if (sPageText == '') {
/* create data on dialog */ /* create data on dialog */
$('#divCopyText').children().remove(); $('#divCopyText').children().remove();
$('#divCopyText').append('<li class="last">' + i18nText('txtNoTextCopy') + '</li>'); $('#divCopyText').append('<li class="last">' + I18N.i18nText('txtNoTextCopy') + '</li>');
// $("#divCopyText").dialog({ // $("#divCopyText").dialog({
// show: "blind", // show: "blind",
...@@ -628,14 +621,14 @@ function handleCopyTextData(data, pos) { ...@@ -628,14 +621,14 @@ function handleCopyTextData(data, pos) {
// resizable:false, // resizable:false,
// width: WIDTH_DIALOG_COPYTEXT, // width: WIDTH_DIALOG_COPYTEXT,
// height: HEIGHT_DIALOG_COPYTEXT_NO_COPYTEXT, // height: HEIGHT_DIALOG_COPYTEXT_NO_COPYTEXT,
// title: i18nText('txtTextCopy'), // title: I18N.i18nText('txtTextCopy'),
// position: pos}); // position: pos});
//title start //title start
$('#bookmarkBoxHdCT').children().remove(); $('#bookmarkBoxHdCT').children().remove();
$('#bookmarkBoxHdCT').html('<a id="copyTextClosing" class="delete" style="padding-top:0px;"> </a>'); $('#bookmarkBoxHdCT').html('<a id="copyTextClosing" class="delete" style="padding-top:0px;"> </a>');
$("#copyTextClosing").click(closeCopyTextBox); $("#copyTextClosing").click(closeCopyTextBox);
$('#bookmarkBoxHdCT').append(i18nText('txtTextCopy')); $('#bookmarkBoxHdCT').append(I18N.i18nText('txtTextCopy'));
//title end //title end
//COMMON.lockLayout(); //COMMON.lockLayout();
...@@ -666,14 +659,14 @@ function handleCopyTextData(data, pos) { ...@@ -666,14 +659,14 @@ function handleCopyTextData(data, pos) {
// width: WIDTH_DIALOG_COPYTEXT, // width: WIDTH_DIALOG_COPYTEXT,
// height:HEIGHT_DIALOG_COPYTEXT, // height:HEIGHT_DIALOG_COPYTEXT,
// resizable: false, // resizable: false,
// title: i18nText('txtTextCopy'), // title: I18N.i18nText('txtTextCopy'),
// position: pos}); // position: pos});
//title start //title start
$('#bookmarkBoxHdCT').children().remove(); $('#bookmarkBoxHdCT').children().remove();
$('#bookmarkBoxHdCT').html('<a id="copyTextClosing" class="delete" style="padding-top:0px;"> </a>'); $('#bookmarkBoxHdCT').html('<a id="copyTextClosing" class="delete" style="padding-top:0px;"> </a>');
$("#copyTextClosing").click(closeCopyTextBox); $("#copyTextClosing").click(closeCopyTextBox);
$('#bookmarkBoxHdCT').append(i18nText('txtTextCopy')); $('#bookmarkBoxHdCT').append(I18N.i18nText('txtTextCopy'));
//title end //title end
...@@ -764,7 +757,7 @@ function searchHandle() { ...@@ -764,7 +757,7 @@ function searchHandle() {
$('#bookmarkBoxHdSearching').children().remove(); $('#bookmarkBoxHdSearching').children().remove();
$('#bookmarkBoxHdSearching').html('<a id="searchingResultClosing" class="delete" > </a>'); $('#bookmarkBoxHdSearching').html('<a id="searchingResultClosing" class="delete" > </a>');
$("#searchingResultClosing").click(closeSearchingBox); $("#searchingResultClosing").click(closeSearchingBox);
$('#bookmarkBoxHdSearching').append(i18nText('txtSearchResult')); $('#bookmarkBoxHdSearching').append(I18N.i18nText('txtSearchResult'));
//title end //title end
//COMMON.lockLayout(); //COMMON.lockLayout();
...@@ -784,7 +777,7 @@ function searchHandle() { ...@@ -784,7 +777,7 @@ function searchHandle() {
' <li id="' + changePageNo(sPageNo[i].pageNo) + '">' + ' <li id="' + changePageNo(sPageNo[i].pageNo) + '">' +
' <img id="img_search_' + sPageNo[i].pageNo + '" class="imgbox" src="' + formatStringBase64(dataStored[nStored].pageThumbnail) + '"/>' + ' <img id="img_search_' + sPageNo[i].pageNo + '" class="imgbox" src="' + formatStringBase64(dataStored[nStored].pageThumbnail) + '"/>' +
' <span class="mdltext">' + ' <span class="mdltext">' +
i18nText('txtPage') + (changePageNo(sPageNo[i].pageNo) + 1) + '<br /> ' + I18N.i18nText('txtPage') + (changePageNo(sPageNo[i].pageNo) + 1) + '<br /> ' +
COMMON.htmlEncode(COMMON.truncate(sPageNo[i].pageText, 20)) + COMMON.htmlEncode(COMMON.truncate(sPageNo[i].pageText, 20)) +
' </span>' + ' </span>' +
' </li>' ' </li>'
...@@ -814,7 +807,7 @@ function searchHandle() { ...@@ -814,7 +807,7 @@ function searchHandle() {
' <li id="' + changePageNo(sPageNo[i].pageNo) + '">' + ' <li id="' + changePageNo(sPageNo[i].pageNo) + '">' +
' <img id="img_search_' + sPageNo[i].pageNo + '" class="imgbox" src="img/view_loading.gif"/>' + ' <img id="img_search_' + sPageNo[i].pageNo + '" class="imgbox" src="img/view_loading.gif"/>' +
' <span class="mdltext">' + ' <span class="mdltext">' +
i18nText('txtPage') + (changePageNo(sPageNo[i].pageNo) + 1) + '<br /> ' + I18N.i18nText('txtPage') + (changePageNo(sPageNo[i].pageNo) + 1) + '<br /> ' +
COMMON.htmlEncode(COMMON.truncate(sPageNo[i].pageText, 20)) + COMMON.htmlEncode(COMMON.truncate(sPageNo[i].pageText, 20)) +
' </span>' + ' </span>' +
' </li>' ' </li>'
...@@ -850,13 +843,13 @@ function searchHandle() { ...@@ -850,13 +843,13 @@ function searchHandle() {
} }
} else { } else {
$('#divSearchResult').children().remove(); $('#divSearchResult').children().remove();
$('#divSearchResult').append('<span class="last">' + i18nText('txtNoSearchResult') + '</span>'); $('#divSearchResult').append('<span class="last">' + I18N.i18nText('txtNoSearchResult') + '</span>');
//title start //title start
$('#bookmarkBoxHdSearching').children().remove(); $('#bookmarkBoxHdSearching').children().remove();
$('#bookmarkBoxHdSearching').html('<a id="searchingResultClosing" class="delete" > </a>'); $('#bookmarkBoxHdSearching').html('<a id="searchingResultClosing" class="delete" > </a>');
$("#searchingResultClosing").click(closeSearchingBox); $("#searchingResultClosing").click(closeSearchingBox);
$('#bookmarkBoxHdSearching').append(i18nText('txtSearchResult')); $('#bookmarkBoxHdSearching').append(I18N.i18nText('txtSearchResult'));
//title end //title end
//COMMON.lockLayout(); //COMMON.lockLayout();
...@@ -898,7 +891,7 @@ function loadDataToDialogSearch(searchResultTemp) { ...@@ -898,7 +891,7 @@ function loadDataToDialogSearch(searchResultTemp) {
' <li id="' + changePageNo(searchResult[nIndex].pageNo) + '">' + ' <li id="' + changePageNo(searchResult[nIndex].pageNo) + '">' +
' <img class="imgbox" src="' + formatStringBase64(searchResult[nIndex].pageThumbnail) + '"/>' + ' <img class="imgbox" src="' + formatStringBase64(searchResult[nIndex].pageThumbnail) + '"/>' +
' <span class="mdltext">' + ' <span class="mdltext">' +
i18nText('txtPage') + (changePageNo(searchResult[nIndex].pageNo) + 1) + '<br /> ' + I18N.i18nText('txtPage') + (changePageNo(searchResult[nIndex].pageNo) + 1) + '<br /> ' +
COMMON.htmlEncode(COMMON.truncate(searchResult[nIndex].pageText, 20)) + COMMON.htmlEncode(COMMON.truncate(searchResult[nIndex].pageText, 20)) +
' </span>' + ' </span>' +
' </li>' ' </li>'
...@@ -996,9 +989,9 @@ function playBGMOfContent() { ...@@ -996,9 +989,9 @@ function playBGMOfContent() {
function showErrorScreen() { function showErrorScreen() {
// エラーメッセージの表示 // エラーメッセージの表示
var errMes = i18nText('msgPageImgErr'); var errMes = I18N.i18nText('msgPageImgErr');
//if( errMsg == undefined || errMsg == "" ){ //if( errMsg == undefined || errMsg == "" ){
// errMes = i18nText('msgPageImgErr'); // errMes = I18N.i18nText('msgPageImgErr');
//} //}
$('#divImageLoading').css('display', 'none'); $('#divImageLoading').css('display', 'none');
COMMON.lockLayout(); COMMON.lockLayout();
...@@ -1020,7 +1013,7 @@ function showAlertScreen(errMes) { ...@@ -1020,7 +1013,7 @@ function showAlertScreen(errMes) {
// アラートメッセージの表示 // アラートメッセージの表示
if( errMes == undefined || errMes == "" ){ if( errMes == undefined || errMes == "" ){
errMes = "message."; //i18nText('msgPageImgErr'); errMes = "message."; //I18N.i18nText('msgPageImgErr');
} }
$('#divImageLoading').css('display', 'none'); $('#divImageLoading').css('display', 'none');
COMMON.lockLayout(); COMMON.lockLayout();
...@@ -1895,16 +1888,16 @@ function changeSlider(page_index) { ...@@ -1895,16 +1888,16 @@ function changeSlider(page_index) {
/* handle display value tooltip */ /* handle display value tooltip */
function handleTooltip() { function handleTooltip() {
/*$('#imgHome').attr('title', i18nText('dspHome')); /*$('#imgHome').attr('title', I18N.i18nText('dspHome'));
$('#imgBack').attr('title', i18nText('txtTooltipBack')); $('#imgBack').attr('title', I18N.i18nText('txtTooltipBack'));
$('#listbookmark').attr('title', i18nText('txtShioriCtnLs')); $('#listbookmark').attr('title', I18N.i18nText('txtShioriCtnLs'));
$('#imgbookmark').attr('title', i18nText('txtTooltipBookmark')); $('#imgbookmark').attr('title', I18N.i18nText('txtTooltipBookmark'));
$('#listindex').attr('title', i18nText('txtIndex')); $('#listindex').attr('title', I18N.i18nText('txtIndex'));
$('#copytext').attr('title', i18nText('txtTextCopy')); $('#copytext').attr('title', I18N.i18nText('txtTextCopy'));
$('#imgmemo').attr('title', i18nText('txtTooltipShowMemo')); $('#imgmemo').attr('title', I18N.i18nText('txtTooltipShowMemo'));
$('#imgaddmemo').attr('title', i18nText('txtTooltipAddMemo')); $('#imgaddmemo').attr('title', I18N.i18nText('txtTooltipAddMemo'));
$('#imgmarking').attr('title', i18nText('txtTooltipShowMarking')); $('#imgmarking').attr('title', I18N.i18nText('txtTooltipShowMarking'));
$('#imgmarkingtoolbar').attr('title', i18nText('txtTooltipShowMarkingTool')); */ $('#imgmarkingtoolbar').attr('title', I18N.i18nText('txtTooltipShowMarkingTool')); */
}; };
function StartTimerUpdateLog() { function StartTimerUpdateLog() {
...@@ -2053,12 +2046,12 @@ function changePageWithoutSlide(pageMove) { ...@@ -2053,12 +2046,12 @@ function changePageWithoutSlide(pageMove) {
if (dataPageTitle[pageMove]) { if (dataPageTitle[pageMove]) {
if (dataPageTitle[pageMove] != '') { if (dataPageTitle[pageMove] != '') {
document.title = contentName + '_' + dataPageTitle[pageMove] + ' | ' + i18nText('sysAppTitle'); document.title = contentName + '_' + dataPageTitle[pageMove] + ' | ' + I18N.i18nText('sysAppTitle');
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
}, },
...@@ -2109,12 +2102,12 @@ function changePageWithoutSlide(pageMove) { ...@@ -2109,12 +2102,12 @@ function changePageWithoutSlide(pageMove) {
if (dataPageTitle[pageMove]) { if (dataPageTitle[pageMove]) {
if (dataPageTitle[pageMove] != '') { if (dataPageTitle[pageMove] != '') {
document.title = contentName + '_' + dataPageTitle[pageMove] + ' | ' + i18nText('sysAppTitle'); document.title = contentName + '_' + dataPageTitle[pageMove] + ' | ' + I18N.i18nText('sysAppTitle');
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
} }
//END : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process //END : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process
...@@ -2682,7 +2675,7 @@ $("document").ready(function () { ...@@ -2682,7 +2675,7 @@ $("document").ready(function () {
initPageMediaAndHtmlType(); initPageMediaAndHtmlType();
//START TRB00059 - EDITOR: Long - Date : 09/19/2013 - Summary : Add title for media and html type //START TRB00059 - EDITOR: Long - Date : 09/19/2013 - Summary : Add title for media and html type
document.title = data.contentData.contentName + ' | ' + i18nText('sysAppTitle'); document.title = data.contentData.contentName + ' | ' + I18N.i18nText('sysAppTitle');
//END TRB00059 - EDITOR: Long - Date : 09/19/2013 - Summary : Add title for media and html type //END TRB00059 - EDITOR: Long - Date : 09/19/2013 - Summary : Add title for media and html type
} }
else{ else{
...@@ -2701,7 +2694,7 @@ $("document").ready(function () { ...@@ -2701,7 +2694,7 @@ $("document").ready(function () {
initPageMediaAndHtmlType(); initPageMediaAndHtmlType();
//START TRB00059 - EDITOR: Long - Date : 09/19/2013 - Summary : Add title for media and html type //START TRB00059 - EDITOR: Long - Date : 09/19/2013 - Summary : Add title for media and html type
document.title = data.contentData.contentName + ' | ' + i18nText('sysAppTitle'); document.title = data.contentData.contentName + ' | ' + I18N.i18nText('sysAppTitle');
//END TRB00059 - EDITOR: Long - Date : 09/19/2013 - Summary : Add title for media and html type //END TRB00059 - EDITOR: Long - Date : 09/19/2013 - Summary : Add title for media and html type
} }
else{ else{
......
...@@ -20,12 +20,12 @@ function showAnket(url, fullscreen, objectId) { ...@@ -20,12 +20,12 @@ function showAnket(url, fullscreen, objectId) {
$container.draggable({ handle: "h1" }); $container.draggable({ handle: "h1" });
$container.html( $container.html(
'<h1>'+i18nText('txtEnqueteTitle') '<h1>'+I18N.i18nText('txtEnqueteTitle')
+ '<img src="img/viewer/x.png" style="margin:3px 3px 0px 21px" id="btnClose" class="align_right" ></img>' + '<img src="img/viewer/x.png" style="margin:3px 3px 0px 21px" id="btnClose" class="align_right" ></img>'
+ '</h1>' + '</h1>'
+ '<div class="anket-container" id="anket-container"><iframe width="' + width + '" height="100%" frameborder="0" scrolling="auto" src="' + url + '">' + '<div class="anket-container" id="anket-container"><iframe width="' + width + '" height="100%" frameborder="0" scrolling="auto" src="' + url + '">'
+ '</iframe></div>' + '</iframe></div>'
+ '<div class="anket-commands" id="anket-commands"><input type="button" value="' + i18nText('txtTransparent') + '" id="btnFullOpacity"/> <input type="button" value="' + i18nText('txtSemiTransparent') + '" id="btnApartOpacity"/> <input type="button" value="' + i18nText('txtNoTransparent') + '" id="btnNoOpacity"/></div><div style="clear:both;"></div>' + '<div class="anket-commands" id="anket-commands"><input type="button" value="' + I18N.i18nText('txtTransparent') + '" id="btnFullOpacity"/> <input type="button" value="' + I18N.i18nText('txtSemiTransparent') + '" id="btnApartOpacity"/> <input type="button" value="' + I18N.i18nText('txtNoTransparent') + '" id="btnNoOpacity"/></div><div style="clear:both;"></div>'
); );
$('#dialog h1 img').click(function(){ $('#dialog h1 img').click(function(){
......
/// <reference path="../common/js/jquery-ui-1.8.23.custom.min.js" />
/// <reference path="../common/js/common.js" />
/// <reference path="contentview_VarDef.js" />
/// <reference path="contentview_CallApi.js" />
/// <reference path="contentview_GetData.js" />
/// <reference path="contentview_InitObjects.js" />
/// <reference path="contentview_Events.js" />
/* ----------------------------------- Create memo --------------------------------*/ /* ----------------------------------- Create memo --------------------------------*/
...@@ -1190,7 +1183,7 @@ var moveToContent = function (mediaType, actionType, id, imageUrl, x, y, w, h, v ...@@ -1190,7 +1183,7 @@ var moveToContent = function (mediaType, actionType, id, imageUrl, x, y, w, h, v
}, },
function (xmlHttpRequest, txtStatus, errorThrown) { function (xmlHttpRequest, txtStatus, errorThrown) {
if (xmlHttpRequest.status == 404) { if (xmlHttpRequest.status == 404) {
showAlertScreen(i18nText('msgContentNotExist')); showAlertScreen(I18N.i18nText('msgContentNotExist'));
} }
else { else {
// Show system error // Show system error
...@@ -1229,7 +1222,7 @@ function createAlertTypeDialog(msg){ ...@@ -1229,7 +1222,7 @@ function createAlertTypeDialog(msg){
$container.draggable({ handle: "h1" }); $container.draggable({ handle: "h1" });
$container.html( $container.html(
' <h1 class="lang" lang="txtContentWarning">'+ i18nText("txtContentWarning") +'</h1>' ' <h1 class="lang" lang="txtContentWarning">'+ I18N.i18nText("txtContentWarning") +'</h1>'
+' <p class="message">' +' <p class="message">'
+ msg + msg
+' </p>' +' </p>'
...@@ -1265,9 +1258,9 @@ function createPwdRequiredTypeDialog(){ ...@@ -1265,9 +1258,9 @@ function createPwdRequiredTypeDialog(){
$container.addClass('sectionLimitAccess'); $container.addClass('sectionLimitAccess');
$container.draggable({ handle: "h1" }); $container.draggable({ handle: "h1" });
$container.html( $container.html(
' <h1 class="lang" lang="txtContentPWTitle">'+ i18nText("txtContentPWTitle") +'</h1>' ' <h1 class="lang" lang="txtContentPWTitle">'+ I18N.i18nText("txtContentPWTitle") +'</h1>'
+' <p class="message">' +' <p class="message">'
+' <label class="text lang" lang="txtContentPWMsg">'+ i18nText("txtContentPWMsg") +'</label>' +' <label class="text lang" lang="txtContentPWMsg">'+ I18N.i18nText("txtContentPWMsg") +'</label>'
+' <input type="password" />' +' <input type="password" />'
+' <label class="error" id="lblMessageLimitError"></label> ' +' <label class="error" id="lblMessageLimitError"></label> '
+' </p>' +' </p>'
...@@ -1291,7 +1284,7 @@ function createPwdRequiredTypeDialog(){ ...@@ -1291,7 +1284,7 @@ function createPwdRequiredTypeDialog(){
function () { function () {
var password = $('.sectionLimitAccess .message input').val(); var password = $('.sectionLimitAccess .message input').val();
if (!ValidationUtil.CheckRequiredForText(password)) { if (!ValidationUtil.CheckRequiredForText(password)) {
$('#lblMessageLimitError').html(i18nText('msgPwdEmpty')).show(); $('#lblMessageLimitError').html(I18N.i18nText('msgPwdEmpty')).show();
return; return;
} }
...@@ -1324,7 +1317,7 @@ function createPwdRequiredTypeDialog(){ ...@@ -1324,7 +1317,7 @@ function createPwdRequiredTypeDialog(){
avwScreenMove(ScreenIds.ContentView); avwScreenMove(ScreenIds.ContentView);
} }
else { else {
$('#lblMessageLimitError').html(AVWEB.format(i18nText('msgLoginErrWrong'), data.errorMessage).toString()).show(); $('#lblMessageLimitError').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), data.errorMessage).toString()).show();
} }
}, },
function (xhr, statusText, errorThrown) { function (xhr, statusText, errorThrown) {
...@@ -1332,7 +1325,7 @@ function createPwdRequiredTypeDialog(){ ...@@ -1332,7 +1325,7 @@ function createPwdRequiredTypeDialog(){
if (xhr.responseText && xhr.status != 0) { if (xhr.responseText && xhr.status != 0) {
errorCode = JSON.parse(xhr.responseText).errorMessage; errorCode = JSON.parse(xhr.responseText).errorMessage;
} }
$('#lblMessageLimitError').html(AVWEB.format(i18nText('msgLoginErrWrong'), errorCode).toString()).show(); $('#lblMessageLimitError').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), errorCode).toString()).show();
}); });
} }
...@@ -1786,12 +1779,12 @@ Transition.prototype.flipNextPage = function () { ...@@ -1786,12 +1779,12 @@ Transition.prototype.flipNextPage = function () {
/* change title of page */ /* change title of page */
if (dataPageTitle[getContent().pageIndex]) { if (dataPageTitle[getContent().pageIndex]) {
if (dataPageTitle[getContent().pageIndex] != '') { if (dataPageTitle[getContent().pageIndex] != '') {
document.title = contentName + '_' + dataPageTitle[getContent().pageIndex] + ' | ' + i18nText('sysAppTitle'); document.title = contentName + '_' + dataPageTitle[getContent().pageIndex] + ' | ' + I18N.i18nText('sysAppTitle');
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
/* set end log */ /* set end log */
COMMON.SetEndLog(contentID); COMMON.SetEndLog(contentID);
...@@ -1859,12 +1852,12 @@ Transition.prototype.flipNextPage = function () { ...@@ -1859,12 +1852,12 @@ Transition.prototype.flipNextPage = function () {
/* change title of page */ /* change title of page */
if (dataPageTitle[getContent().pageIndex]) { if (dataPageTitle[getContent().pageIndex]) {
if (dataPageTitle[getContent().pageIndex] != '') { if (dataPageTitle[getContent().pageIndex] != '') {
document.title = contentName + '_' + dataPageTitle[getContent().pageIndex] + ' | ' + i18nText('sysAppTitle'); document.title = contentName + '_' + dataPageTitle[getContent().pageIndex] + ' | ' + I18N.i18nText('sysAppTitle');
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
/* set end log */ /* set end log */
COMMON.SetEndLog(contentID); COMMON.SetEndLog(contentID);
...@@ -1947,12 +1940,12 @@ Transition.prototype.flipPreviousPage = function () { ...@@ -1947,12 +1940,12 @@ Transition.prototype.flipPreviousPage = function () {
/* change title of page */ /* change title of page */
if (dataPageTitle[getContent().pageIndex]) { if (dataPageTitle[getContent().pageIndex]) {
if (dataPageTitle[getContent().pageIndex] != '') { if (dataPageTitle[getContent().pageIndex] != '') {
document.title = contentName + '_' + dataPageTitle[getContent().pageIndex] + ' | ' + i18nText('sysAppTitle'); document.title = contentName + '_' + dataPageTitle[getContent().pageIndex] + ' | ' + I18N.i18nText('sysAppTitle');
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
/* set end log */ /* set end log */
COMMON.SetEndLog(contentID); COMMON.SetEndLog(contentID);
...@@ -2019,12 +2012,12 @@ Transition.prototype.flipPreviousPage = function () { ...@@ -2019,12 +2012,12 @@ Transition.prototype.flipPreviousPage = function () {
/* change title of page */ /* change title of page */
if (dataPageTitle[getContent().pageIndex]) { if (dataPageTitle[getContent().pageIndex]) {
if (dataPageTitle[getContent().pageIndex] != '') { if (dataPageTitle[getContent().pageIndex] != '') {
document.title = contentName + '_' + dataPageTitle[getContent().pageIndex] + ' | ' + i18nText('sysAppTitle'); document.title = contentName + '_' + dataPageTitle[getContent().pageIndex] + ' | ' + I18N.i18nText('sysAppTitle');
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
/* set end log */ /* set end log */
COMMON.SetEndLog(contentID); COMMON.SetEndLog(contentID);
...@@ -2103,12 +2096,12 @@ Transition.prototype.flipToPage = function (index) { ...@@ -2103,12 +2096,12 @@ Transition.prototype.flipToPage = function (index) {
/* change title of page */ /* change title of page */
if (dataPageTitle[index]) { if (dataPageTitle[index]) {
if (dataPageTitle[index] != '') { if (dataPageTitle[index] != '') {
document.title = contentName + '_' + dataPageTitle[index] + ' | ' + i18nText('sysAppTitle'); document.title = contentName + '_' + dataPageTitle[index] + ' | ' + I18N.i18nText('sysAppTitle');
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
/* set end log */ /* set end log */
COMMON.SetEndLog(contentID); COMMON.SetEndLog(contentID);
...@@ -2182,12 +2175,12 @@ Transition.prototype.flipToPage = function (index) { ...@@ -2182,12 +2175,12 @@ Transition.prototype.flipToPage = function (index) {
/* change title of page */ /* change title of page */
if (dataPageTitle[index]) { if (dataPageTitle[index]) {
if (dataPageTitle[index] != '') { if (dataPageTitle[index] != '') {
document.title = contentName + '_' + dataPageTitle[index] + ' | ' + i18nText('sysAppTitle'); document.title = contentName + '_' + dataPageTitle[index] + ' | ' + I18N.i18nText('sysAppTitle');
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
/* set end log */ /* set end log */
COMMON.SetEndLog(contentID); COMMON.SetEndLog(contentID);
...@@ -2210,10 +2203,10 @@ Transition.prototype.flipToPage = function (index) { ...@@ -2210,10 +2203,10 @@ Transition.prototype.flipToPage = function (index) {
}; };
function createTextConfirmAudio() { function createTextConfirmAudio() {
var text = i18nText('msgBGMPlayConfirm'); var text = I18N.i18nText('msgBGMPlayConfirm');
$('#txtAudio').html(text); $('#txtAudio').html(text);
var text = i18nText('msgBGMPagePlayConfirm'); var text = I18N.i18nText('msgBGMPagePlayConfirm');
$('#txtAudio_page').html(text); $('#txtAudio_page').html(text);
}; };
......
/// <reference path="../common/js/jquery-ui-1.8.23.custom.min.js" />
/// <reference path="../common/js/common.js" />
/// <reference path="contentview_VarDef.js" />
/// <reference path="contentview_CallApi.js" />
//START TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content //START TRB00097 - Editor: Long - Date: 09/30/2013 - Summary : Get All Page size of content
/* get Json stored content info */ /* get Json stored content info */
function getJsonContentInfo() { function getJsonContentInfo() {
...@@ -922,13 +914,13 @@ function getBookmarklist(pos) { ...@@ -922,13 +914,13 @@ function getBookmarklist(pos) {
if (isExistBookMarkInContent == false) { if (isExistBookMarkInContent == false) {
$('#divListBookmark').children().remove(); $('#divListBookmark').children().remove();
$('#divListBookmark').append('<span class="last">' + i18nText('msgShioriNotExists') + '</span>'); $('#divListBookmark').append('<span class="last">' + I18N.i18nText('msgShioriNotExists') + '</span>');
//title start //title start
$('#bookmarkBoxHdBM').children().remove(); $('#bookmarkBoxHdBM').children().remove();
$('#bookmarkBoxHdBM').html('<a id="bookmarkClosing" class="delete" > </a>'); $('#bookmarkBoxHdBM').html('<a id="bookmarkClosing" class="delete" > </a>');
$("#bookmarkClosing").click(closeBookmarkBox); $("#bookmarkClosing").click(closeBookmarkBox);
$('#bookmarkBoxHdBM').append(i18nText('txtShioriCtnLs')); $('#bookmarkBoxHdBM').append(I18N.i18nText('txtShioriCtnLs'));
//title end //title end
//COMMON.lockLayout(); //COMMON.lockLayout();
$('#boxBookMark').css('z-index', '101'); $('#boxBookMark').css('z-index', '101');
...@@ -955,14 +947,14 @@ function getPageIndexJson(pos) { ...@@ -955,14 +947,14 @@ function getPageIndexJson(pos) {
// height:HEIGHT_DIALOG_INDEX, // height:HEIGHT_DIALOG_INDEX,
// resizable:false, // resizable:false,
// closeOnEscape: false, // closeOnEscape: false,
// title: i18nText('txtIndex'), // title: I18N.i18nText('txtIndex'),
// position: pos}); // position: pos});
//title start //title start
$('#indexBoxHdIndex').children().remove(); $('#indexBoxHdIndex').children().remove();
$('#indexBoxHdIndex').html('<a id="indexClosing" class="delete" > </a>'); $('#indexBoxHdIndex').html('<a id="indexClosing" class="delete" > </a>');
$("#indexClosing").click(closeIndexBox); $("#indexClosing").click(closeIndexBox);
$('#indexBoxHdIndex').append(i18nText('txtIndex')); $('#indexBoxHdIndex').append(I18N.i18nText('txtIndex'));
//title end //title end
//COMMON.lockLayout(); //COMMON.lockLayout();
$('#boxIndex').css('z-index', '101'); $('#boxIndex').css('z-index', '101');
...@@ -1002,7 +994,7 @@ function getPageIndexJson(pos) { ...@@ -1002,7 +994,7 @@ function getPageIndexJson(pos) {
$(".treeview, .treeview ul").css('padding', '0px 8px 0'); $(".treeview, .treeview ul").css('padding', '0px 8px 0');
} else { } else {
$('#divListIndex').children().remove(); $('#divListIndex').children().remove();
$('#divListIndex').append('<span class="no-item">' + i18nText('msgNoIndex') + '</span>'); $('#divListIndex').append('<span class="no-item">' + I18N.i18nText('msgNoIndex') + '</span>');
// //show dialog index // //show dialog index
// $("#divListIndex").dialog({ // $("#divListIndex").dialog({
...@@ -1011,14 +1003,14 @@ function getPageIndexJson(pos) { ...@@ -1011,14 +1003,14 @@ function getPageIndexJson(pos) {
// resizable:false, // resizable:false,
// width: WIDTH_DIALOG_INDEX, // width: WIDTH_DIALOG_INDEX,
// height:HEIGHT_DIALOG_INDEX_NO_INDEX, // height:HEIGHT_DIALOG_INDEX_NO_INDEX,
// title: i18nText('txtIndex'), // title: I18N.i18nText('txtIndex'),
// position: pos}); // position: pos});
//title start //title start
$('#indexBoxHdIndex').children().remove(); $('#indexBoxHdIndex').children().remove();
$('#indexBoxHdIndex').html('<a id="indexClosing" class="delete" > </a>'); $('#indexBoxHdIndex').html('<a id="indexClosing" class="delete" > </a>');
$("#indexClosing").click(closeIndexBox); $("#indexClosing").click(closeIndexBox);
$('#indexBoxHdIndex').append(i18nText('txtIndex')); $('#indexBoxHdIndex').append(I18N.i18nText('txtIndex'));
//title end //title end
//COMMON.lockLayout(); //COMMON.lockLayout();
$('#boxIndex').css('z-index', '101'); $('#boxIndex').css('z-index', '101');
...@@ -1046,14 +1038,14 @@ function getText() { ...@@ -1046,14 +1038,14 @@ function getText() {
} }
} }
if (sPageText == '') { if (sPageText == '') {
return { text: i18nText('txtNoTextCopy'), title: i18nText('txtTextCopy') + ' | ' + i18nText('sysAppTitle') }; return { text: I18N.i18nText('txtNoTextCopy'), title: I18N.i18nText('txtTextCopy') + ' | ' + I18N.i18nText('sysAppTitle') };
} }
else { else {
var strPattern = "\n"; var strPattern = "\n";
var strTemp = sPageText; var strTemp = sPageText;
strTemp = strTemp.replaceAll(strPattern, "<br/>"); strTemp = strTemp.replaceAll(strPattern, "<br/>");
strTemp += "<br/>"; strTemp += "<br/>";
return { text: strTemp, title: i18nText('txtTextCopy') + ' | ' + i18nText('sysAppTitle') }; return { text: strTemp, title: I18N.i18nText('txtTextCopy') + ' | ' + I18N.i18nText('sysAppTitle') };
} }
}; };
...@@ -1175,7 +1167,7 @@ function getContentDataForImageType(){ ...@@ -1175,7 +1167,7 @@ function getContentDataForImageType(){
//Set default page No to image Type //Set default page No to image Type
imageTypeData["pageNo"] = 1; imageTypeData["pageNo"] = 1;
document.title = data.contentData.contentName + ' | ' + i18nText('sysAppTitle'); document.title = data.contentData.contentName + ' | ' + I18N.i18nText('sysAppTitle');
}); });
}; };
......
/// <reference path="../common/js/jquery-ui-1.8.23.custom.min.js" />
/// <reference path="../common/js/common.js" />
/// <reference path="contentview_VarDef.js" />
/// <reference path="contentview_CallApi.js" />
/// <reference path="contentview_GetData.js" />
/* init Image memo */ /* init Image memo */
function initImageMemo() { function initImageMemo() {
if (ClientData.IsDisplayMemo() == true) { if (ClientData.IsDisplayMemo() == true) {
...@@ -328,12 +317,12 @@ function initPage() { ...@@ -328,12 +317,12 @@ function initPage() {
/* set pageTitle*/ /* set pageTitle*/
if (dataPageTitle[0]) { if (dataPageTitle[0]) {
if (dataPageTitle[0] != '') { if (dataPageTitle[0] != '') {
document.title = contentName + '_' + dataPageTitle[0] + ' | ' + i18nText('sysAppTitle'); document.title = contentName + '_' + dataPageTitle[0] + ' | ' + I18N.i18nText('sysAppTitle');
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
/* handle slider bar */ /* handle slider bar */
...@@ -470,12 +459,12 @@ function initPage() { ...@@ -470,12 +459,12 @@ function initPage() {
/* set pageTitle*/ /* set pageTitle*/
if (dataPageTitle[0]) { if (dataPageTitle[0]) {
if (dataPageTitle[0] != '') { if (dataPageTitle[0] != '') {
document.title = contentName + '_' + dataPageTitle[0] + ' | ' + i18nText('sysAppTitle'); document.title = contentName + '_' + dataPageTitle[0] + ' | ' + I18N.i18nText('sysAppTitle');
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
} else { } else {
document.title = contentName + ' | ' + i18nText('sysAppTitle'); document.title = contentName + ' | ' + I18N.i18nText('sysAppTitle');
} }
/* handle slider bar */ /* handle slider bar */
......
...@@ -9,7 +9,7 @@ var maker_chooseColor; ...@@ -9,7 +9,7 @@ var maker_chooseColor;
function ShowMaker(targetId){ function ShowMaker(targetId){
maker_targetDiv = targetId; maker_targetDiv = targetId;
i18nReplaceText(); I18N.i18nReplaceText();
$('#dlgMaker').show(); $('#dlgMaker').show();
$('#dlgMaker').draggable(); $('#dlgMaker').draggable();
Maker_handleColorPickerEvent(); Maker_handleColorPickerEvent();
......
...@@ -13,15 +13,15 @@ function createMemoDialog(){ ...@@ -13,15 +13,15 @@ function createMemoDialog(){
targetDiv.html(''); targetDiv.html('');
targetDiv.append( targetDiv.append(
'<aside id="memoWrapper" class="MemoIndexBox">' '<aside id="memoWrapper" class="MemoIndexBox">'
+ ' <h1 class="indexBoxHd">' + i18nText('txtMemo') + ' <h1 class="indexBoxHd">' + I18N.i18nText('txtMemo')
+' <a class="delete"></a>' +' <a class="delete"></a>'
+' </h1>' +' </h1>'
+' <div id="memoArea" class="indexBoxBody_on">' +' <div id="memoArea" class="indexBoxBody_on">'
+' <textarea id="txaMemoContent" style="resize: none; height: 302px; width: 452px; margin-bottom: 10px"></textarea>' +' <textarea id="txaMemoContent" style="resize: none; height: 302px; width: 452px; margin-bottom: 10px"></textarea>'
+' <div style="width: 450px;">' +' <div style="width: 450px;">'
+ ' <a id="Memo_btnCancel" style="float:right" class="lang cancelbtn" lang="dspCancel">' + i18nText('dspCancel') + '</a>' + ' <a id="Memo_btnCancel" style="float:right" class="lang cancelbtn" lang="dspCancel">' + I18N.i18nText('dspCancel') + '</a>'
+ ' <a id="Memo_btnDel" style="float:right" class="lang cancelbtn" lang="dspDelete">' + i18nText('dspDelete') + '</a>' + ' <a id="Memo_btnDel" style="float:right" class="lang cancelbtn" lang="dspDelete">' + I18N.i18nText('dspDelete') + '</a>'
+ ' <a id="Memo_btnSave" style="float:right" class="lang cancelbtn" lang="dspSave">' + i18nText('dspSave') + '</a>' + ' <a id="Memo_btnSave" style="float:right" class="lang cancelbtn" lang="dspSave">' + I18N.i18nText('dspSave') + '</a>'
+' </div>' +' </div>'
+' </div>' +' </div>'
+'</aside>'); +'</aside>');
......
...@@ -9,7 +9,7 @@ var pen_chooseColor; ...@@ -9,7 +9,7 @@ var pen_chooseColor;
function ShowPen(targetId) { function ShowPen(targetId) {
pen_targetDiv = targetId; pen_targetDiv = targetId;
i18nReplaceText(); I18N.i18nReplaceText();
$('#dlgPen').show(); $('#dlgPen').show();
$('#dlgPen').draggable({ revert: false}); $('#dlgPen').draggable({ revert: false});
Pen_handleColorPickerEvent(); Pen_handleColorPickerEvent();
......
/// コンテンツ詳細画面 /// コンテンツ詳細画面
/// <reference path="../common/js/avweb.js" />
/// <reference path="../common/js/screenLock.js" />
/// <reference path="../common/js/common.js" />
/// <reference path="../common/js/i18n.js" />
/// <reference path="../common/js/jquery-1.8.1.min.js" />
/// <reference path="../common/js/jquery-ui-1.8.23.custom.min.js" />
/// <reference path="../common/js/jquery.toastmessage.js" />
/// <reference path="../common/js/pageViewer.js" />
/// <reference path="init.js" />
/// <reference path="home.js" />
var resourceIdDetail=""; var resourceIdDetail="";
var displayData = { var displayData = {
...@@ -368,11 +348,11 @@ function insertRow(pageThumbnail, pageText, pageNo) { ...@@ -368,11 +348,11 @@ function insertRow(pageThumbnail, pageText, pageNo) {
newRow += "<ul>"; newRow += "<ul>";
newRow += '<li class="list_img"><img src="' + pageThumbnail + '" alt="" width="90" /></li>'; newRow += '<li class="list_img"><img src="' + pageThumbnail + '" alt="" width="90" /></li>';
newRow += '<li class="list_title"><a href="#">' + COMMON.htmlEncode(pageText) + '</a></li>'; newRow += '<li class="list_title"><a href="#">' + COMMON.htmlEncode(pageText) + '</a></li>';
newRow += '<li class="page"><label id="Label2" class="lang" lang="txtPage">' + i18nText('txtPage') + '</label>' + pageNo + '</li>'; newRow += '<li class="page"><label id="Label2" class="lang" lang="txtPage">' + I18N.i18nText('txtPage') + '</label>' + pageNo + '</li>';
newRow += "</ul>"; newRow += "</ul>";
$('#book_list').append(newRow); $('#book_list').append(newRow);
i18nReplaceText(); I18N.i18nReplaceText();
//Resize Image //Resize Image
var imgTemp = new Image(); var imgTemp = new Image();
...@@ -410,7 +390,7 @@ function insertRow1(pageThumbnail, pageText, pageNo) { ...@@ -410,7 +390,7 @@ function insertRow1(pageThumbnail, pageText, pageNo) {
$('#contentdetail_grid tr:last').after(newRow); $('#contentdetail_grid tr:last').after(newRow);
//changeLanguage(ClientData.userInfo_language()); //changeLanguage(ClientData.userInfo_language());
i18nReplaceText(); I18N.i18nReplaceText();
}; };
......
/// <reference path="../common/js/avweb.js" />
/// <reference path="../common/js/common.js" />
/// <reference path="../common/js/i18n.js" />
/// <reference path="../common/js/jquery-1.8.1.min.js" />
/// <reference path="../common/js/jquery-ui-1.8.23.custom.min.js" />
/// <reference path="../common/js/jquery.toastmessage.js" />
//名前空間用のオブジェクトを用意する //名前空間用のオブジェクトを用意する
var HEADER = {}; var HEADER = {};
...@@ -25,7 +19,7 @@ $(document).ready(function () { ...@@ -25,7 +19,7 @@ $(document).ready(function () {
//Toggle Searchbox //Toggle Searchbox
$('input#searchbox-key').click(HEADER.toggleSearchPanel); $('input#searchbox-key').click(HEADER.toggleSearchPanel);
$("#searchbox-key").attr('placeholder', i18nText('msgPlaceHolder')); $("#searchbox-key").attr('placeholder', I18N.i18nText('msgPlaceHolder'));
//Go to Search Page //Go to Search Page
$('#searchbox-search').click(HEADER.searchHeaderButtonFunction); $('#searchbox-search').click(HEADER.searchHeaderButtonFunction);
...@@ -286,7 +280,7 @@ HEADER.changeLanguageJa = function(){ ...@@ -286,7 +280,7 @@ HEADER.changeLanguageJa = function(){
if(window.changeLanguageCallBackFunction){ if(window.changeLanguageCallBackFunction){
changeLanguageCallBackFunction(); changeLanguageCallBackFunction();
} }
$("#searchbox-key").attr('placeholder', i18nText('msgPlaceHolder')); $("#searchbox-key").attr('placeholder', I18N.i18nText('msgPlaceHolder'));
}; };
//Change Language English functions //Change Language English functions
...@@ -299,7 +293,7 @@ HEADER.changeLanguageEn = function(){ ...@@ -299,7 +293,7 @@ HEADER.changeLanguageEn = function(){
if(window.changeLanguageCallBackFunction){ if(window.changeLanguageCallBackFunction){
changeLanguageCallBackFunction(); changeLanguageCallBackFunction();
} }
$("#searchbox-key").attr('placeholder', i18nText('msgPlaceHolder')); $("#searchbox-key").attr('placeholder', I18N.i18nText('msgPlaceHolder'));
}; };
//Change Language English function //Change Language English function
...@@ -312,7 +306,7 @@ HEADER.changeLanguageKo = function(){ ...@@ -312,7 +306,7 @@ HEADER.changeLanguageKo = function(){
if(window.changeLanguageCallBackFunction){ if(window.changeLanguageCallBackFunction){
changeLanguageCallBackFunction(); changeLanguageCallBackFunction();
} }
$("#searchbox-key").attr('placeholder', i18nText('msgPlaceHolder')); $("#searchbox-key").attr('placeholder', I18N.i18nText('msgPlaceHolder'));
}; };
//Shiori function //Shiori function
...@@ -530,27 +524,27 @@ HEADER.DoBackup = function(isBackupMarking, isBackupMemo, isBackupBookmark,isLog ...@@ -530,27 +524,27 @@ HEADER.DoBackup = function(isBackupMarking, isBackupMemo, isBackupBookmark,isLog
// ClientData.isChangedBookmark(false); // ClientData.isChangedBookmark(false);
// ClientData.isChangedMarkingData(false); // ClientData.isChangedMarkingData(false);
// ClientData.isChangedMemo(false); // ClientData.isChangedMemo(false);
// //alert(i18nText('msgBackupSuccess')); // //alert(I18N.i18nText('msgBackupSuccess'));
// //
// // Show message: msgBackupSuccess // // Show message: msgBackupSuccess
// $().toastmessage({ position: 'middle-center' }); // $().toastmessage({ position: 'middle-center' });
// $().toastmessage('showToast', { // $().toastmessage('showToast', {
// type: 'success', // type: 'success',
// sticky: true, // sticky: true,
// text: i18nText('msgBackupSuccess'), // text: I18N.i18nText('msgBackupSuccess'),
// }); // });
// $('.toast-position-middle-center').css('width', '500px'); // $('.toast-position-middle-center').css('width', '500px');
// $('.toast-position-middle-center').css('margin-left', '-250px'); // $('.toast-position-middle-center').css('margin-left', '-250px');
// $('.toast-item-close').live('click', HEADER.webLogoutEvent); // $('.toast-item-close').live('click', HEADER.webLogoutEvent);
// } // }
// else { // else {
// //alert(i18nText('msgBackupFailed')); // //alert(I18N.i18nText('msgBackupFailed'));
// // Show error message: msgBackupFailed // // Show error message: msgBackupFailed
// $().toastmessage({ position: 'middle-center' }); // $().toastmessage({ position: 'middle-center' });
// $().toastmessage('showToast', { // $().toastmessage('showToast', {
// type: 'error', // type: 'error',
// sticky: true, // sticky: true,
// text: i18nText('msgBackupFailed') // text: I18N.i18nText('msgBackupFailed')
// }); // });
// $('.toast-position-middle-center').css('width', '500px'); // $('.toast-position-middle-center').css('width', '500px');
// $('.toast-position-middle-center').css('margin-left', '-250px'); // $('.toast-position-middle-center').css('margin-left', '-250px');
...@@ -558,13 +552,13 @@ HEADER.DoBackup = function(isBackupMarking, isBackupMemo, isBackupBookmark,isLog ...@@ -558,13 +552,13 @@ HEADER.DoBackup = function(isBackupMarking, isBackupMemo, isBackupBookmark,isLog
// } // }
// }, // },
// function (a, b, c) { // function (a, b, c) {
// //alert(i18nText('msgBackupFailed')); // //alert(I18N.i18nText('msgBackupFailed'));
// // Show error message: msgBackupFailed // // Show error message: msgBackupFailed
// $().toastmessage({ position: 'middle-center' }); // $().toastmessage({ position: 'middle-center' });
// $().toastmessage('showToast', { // $().toastmessage('showToast', {
// type: 'error', // type: 'error',
// sticky: true, // sticky: true,
// text: i18nText('msgBackupFailed') // text: I18N.i18nText('msgBackupFailed')
// }); // });
// $('.toast-position-middle-center').css('width', '500px'); // $('.toast-position-middle-center').css('width', '500px');
// $('.toast-position-middle-center').css('margin-left', '-250px'); // $('.toast-position-middle-center').css('margin-left', '-250px');
...@@ -607,13 +601,13 @@ HEADER.DoBackup = function(isBackupMarking, isBackupMemo, isBackupBookmark,isLog ...@@ -607,13 +601,13 @@ HEADER.DoBackup = function(isBackupMarking, isBackupMemo, isBackupBookmark,isLog
isBackupMarkingOK = HEADER.backupFile(JSON.stringify({ "type": 2, "data": ClientData.MarkingData() }), 'Marking.json', 2); isBackupMarkingOK = HEADER.backupFile(JSON.stringify({ "type": 2, "data": ClientData.MarkingData() }), 'Marking.json', 2);
if (isBackupMarkingOK) { if (isBackupMarkingOK) {
ClientData.isChangedMarkingData(false); ClientData.isChangedMarkingData(false);
$('#divResultMessage').append("<div class='toast-item-image-success toast-item-message'>" + i18nText('txtBkMarking') + " " + i18nText('msgBackupSuccess') + "</div>"); $('#divResultMessage').append("<div class='toast-item-image-success toast-item-message'>" + I18N.i18nText('txtBkMarking') + " " + I18N.i18nText('msgBackupSuccess') + "</div>");
} }
// finish backup marking if start backup marking success // finish backup marking if start backup marking success
HEADER.sendSignalBackupFinish(2); HEADER.sendSignalBackupFinish(2);
} }
if (!isBackupMarkingOK) { if (!isBackupMarkingOK) {
$('#divResultMessage').append("<div class='toast-item-image-error toast-item-message'>" + i18nText('txtBkMarking') + " " + i18nText('msgBackupFailed') + "</div>"); $('#divResultMessage').append("<div class='toast-item-image-error toast-item-message'>" + I18N.i18nText('txtBkMarking') + " " + I18N.i18nText('msgBackupFailed') + "</div>");
} }
} }
...@@ -625,13 +619,13 @@ HEADER.DoBackup = function(isBackupMarking, isBackupMemo, isBackupBookmark,isLog ...@@ -625,13 +619,13 @@ HEADER.DoBackup = function(isBackupMarking, isBackupMemo, isBackupBookmark,isLog
if (isBackupBookmarkOK) { if (isBackupBookmarkOK) {
ClientData.isChangedBookmark(false); ClientData.isChangedBookmark(false);
$('#divResultMessage').append("<div class='toast-item-image-success toast-item-message'>" + i18nText('txtBkShiori') + " " + i18nText('msgBackupSuccess') + "</div>"); $('#divResultMessage').append("<div class='toast-item-image-success toast-item-message'>" + I18N.i18nText('txtBkShiori') + " " + I18N.i18nText('msgBackupSuccess') + "</div>");
} }
// finish backup bookmark if start backup bookmark ok // finish backup bookmark if start backup bookmark ok
HEADER.sendSignalBackupFinish(4); HEADER.sendSignalBackupFinish(4);
} }
if (!isBackupBookmarkOK) { if (!isBackupBookmarkOK) {
$('#divResultMessage').append("<div class='toast-item-image-error toast-item-message'>" + i18nText('txtBkShiori') + " " + i18nText('msgBackupFailed') + "</div>"); $('#divResultMessage').append("<div class='toast-item-image-error toast-item-message'>" + I18N.i18nText('txtBkShiori') + " " + I18N.i18nText('msgBackupFailed') + "</div>");
} }
} }
...@@ -643,13 +637,13 @@ HEADER.DoBackup = function(isBackupMarking, isBackupMemo, isBackupBookmark,isLog ...@@ -643,13 +637,13 @@ HEADER.DoBackup = function(isBackupMarking, isBackupMemo, isBackupBookmark,isLog
isBackupMemoOK = HEADER.backupFile(JSON.stringify({ "type": 1, "data": ClientData.MemoData() }), 'ContentMemo.json', 1); isBackupMemoOK = HEADER.backupFile(JSON.stringify({ "type": 1, "data": ClientData.MemoData() }), 'ContentMemo.json', 1);
if (isBackupMemoOK) { if (isBackupMemoOK) {
ClientData.isChangedMemo(false); ClientData.isChangedMemo(false);
$('#divResultMessage').append("<div class='toast-item-image-success toast-item-message'>" + i18nText('txtBkMemo') + " " + i18nText('msgBackupSuccess') + "</div>"); $('#divResultMessage').append("<div class='toast-item-image-success toast-item-message'>" + I18N.i18nText('txtBkMemo') + " " + I18N.i18nText('msgBackupSuccess') + "</div>");
} }
// finish backup memo if start backup memo ok // finish backup memo if start backup memo ok
HEADER.sendSignalBackupFinish(1); HEADER.sendSignalBackupFinish(1);
} }
if (!isBackupMemoOK) { if (!isBackupMemoOK) {
$('#divResultMessage').append("<div class='toast-item-image-error toast-item-message'>" + i18nText('txtBkMemo') + " " + i18nText('msgBackupFailed') + "</div>"); $('#divResultMessage').append("<div class='toast-item-image-error toast-item-message'>" + I18N.i18nText('txtBkMemo') + " " + I18N.i18nText('msgBackupFailed') + "</div>");
} }
} }
...@@ -734,7 +728,7 @@ HEADER.sendSignalBackupFinish = function(typeBackup) ...@@ -734,7 +728,7 @@ HEADER.sendSignalBackupFinish = function(typeBackup)
HEADER.checkForceChangePassword = function(){ HEADER.checkForceChangePassword = function(){
if(ClientData.BookmarkScreen() != ScreenIds.Setting){ if(ClientData.BookmarkScreen() != ScreenIds.Setting){
if(ClientData.requirePasswordChange() == 1){ if(ClientData.requirePasswordChange() == 1){
//alert(i18nText('msgPWDNeedChange')); //alert(I18N.i18nText('msgPWDNeedChange'));
HEADER.showErrorScreenForceChangePassword(); HEADER.showErrorScreenForceChangePassword();
} }
} }
...@@ -744,7 +738,7 @@ HEADER.showErrorScreenForceChangePassword = function(){ ...@@ -744,7 +738,7 @@ HEADER.showErrorScreenForceChangePassword = function(){
var tags = '<div id="avw-auth-error">' + var tags = '<div id="avw-auth-error">' +
'<div style="display:table; width:100%; height:100%;">' + '<div style="display:table; width:100%; height:100%;">' +
'<div style="display:table-cell; text-align:center; vertical-align:middle;">' + '<div style="display:table-cell; text-align:center; vertical-align:middle;">' +
'<p>'+i18nText('msgPWDNeedChange')+'</p>' + '<p>'+I18N.i18nText('msgPWDNeedChange')+'</p>' +
'<div><button id="avw-unauth-ok">OK</button></div>' + '<div><button id="avw-unauth-ok">OK</button></div>' +
'</div></div></div>'; '</div></div></div>';
$('body').prepend(tags); $('body').prepend(tags);
...@@ -871,7 +865,7 @@ HEADER.callbackGetPushMessageNewSuccess = function(data) { ...@@ -871,7 +865,7 @@ HEADER.callbackGetPushMessageNewSuccess = function(data) {
// show notification for new message // show notification for new message
if (data.count > 0) if (data.count > 0)
{ {
$('.notification-pushmessage').html(i18nText("msgPushAlert")).slideDown(); $('.notification-pushmessage').html(I18N.i18nText("msgPushAlert")).slideDown();
// auto off notification push message after timeWaitCloseNewInfoPushMessage // auto off notification push message after timeWaitCloseNewInfoPushMessage
setTimeout(function () { setTimeout(function () {
......
/// <reference path="../common/js/avweb.js" />
/// <reference path="../common/js/screenLock.js" />
/// <reference path="../common/js/common.js" />
/// <reference path="../common/js/i18n.js" />
/// <reference path="../common/js/jquery-1.8.1.min.js" />
/// <reference path="../common/js/jquery-ui-1.8.23.custom.min.js" />
/// <reference path="../common/js/jquery.toastmessage.js" />
/// <reference path="../common/js/pageViewer.js" />
/// <reference path="header.js" />
//Start Declare Variables //Start Declare Variables
//----Constant-----------// //----Constant-----------//
...@@ -65,7 +48,7 @@ $(document).ready(function(){ ...@@ -65,7 +48,7 @@ $(document).ready(function(){
COMMON.LockScreen(); COMMON.LockScreen();
document.title = i18nText('dspViewHistory') + ' | ' + i18nText('sysAppTitle'); document.title = I18N.i18nText('dspViewHistory') + ' | ' + I18N.i18nText('sysAppTitle');
ClientData.BookmarkScreen(ScreenIds.History); ClientData.BookmarkScreen(ScreenIds.History);
...@@ -179,13 +162,13 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid) ...@@ -179,13 +162,13 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid)
+ ' <a id="title' + post.contentId + '" class="dialog name" contentid="' + post.contentId + '">' + COMMON.truncate(COMMON.htmlEncode(post.contentTitle), 25) + '</a>' + ' <a id="title' + post.contentId + '" class="dialog name" contentid="' + post.contentId + '">' + COMMON.truncate(COMMON.htmlEncode(post.contentTitle), 25) + '</a>'
+ ' <div class="info">' + ' <div class="info">'
+ ' <ul class="date">' + ' <ul class="date">'
+ ' <li><span class="lang" lang="txtPubDt">' + i18nText("txtPubDt") + '</span> : ' + outputDate + '</li>' + ' <li><span class="lang" lang="txtPubDt">' + I18N.i18nText("txtPubDt") + '</span> : ' + outputDate + '</li>'
+ ' <li><span class="lang" lang="txtViewDt">' + i18nText("txtViewDt") + '</span>:<span id="lblVdate' + post.contentId + '"> </span></li>' + ' <li><span class="lang" lang="txtViewDt">' + I18N.i18nText("txtViewDt") + '</span>:<span id="lblVdate' + post.contentId + '"> </span></li>'
+ ' </ul>' + ' </ul>'
+ ' <ul class="pic">' + ' <ul class="pic">'
+ ' <li><img src="' + DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentId + '" class="sticker" /></li>' + ' <li><img src="' + DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentId + '" class="sticker" /></li>'
+ ' <li><img src="' + DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentId + '" class="pen" /></li>' + ' <li><img src="' + DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentId + '" class="pen" /></li>'
+ ' <li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">' + i18nText("txtRead") + '</a></li>' + ' <li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">' + I18N.i18nText("txtRead") + '</a></li>'
+ ' </ul>' + ' </ul>'
+ ' </div>' + ' </div>'
+ ' </div>' + ' </div>'
...@@ -213,7 +196,7 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid) ...@@ -213,7 +196,7 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid)
+ ' <ul class="pic">' + ' <ul class="pic">'
+ ' <li><img src="' + DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentId + '" class="sticker" /></li>' + ' <li><img src="' + DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentId + '" class="sticker" /></li>'
+ ' <li><img src="' + DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentId + '" class="pen" /></li>' + ' <li><img src="' + DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentId + '" class="pen" /></li>'
+ ' <li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">'+i18nText("txtRead")+'</a></li>' + ' <li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">'+I18N.i18nText("txtRead")+'</a></li>'
+ ' </ul>' + ' </ul>'
+ ' </div>' + ' </div>'
+ ' </div>' + ' </div>'
...@@ -320,7 +303,7 @@ function handleLanguage(){ ...@@ -320,7 +303,7 @@ function handleLanguage(){
$('#control-sort-titlekana-off').css('display','block'); $('#control-sort-titlekana-off').css('display','block');
$('#content-grid').html("<div id='msgHistoryNotExist'>" + i18nText('msgHistoryNotExist') + "</div>"); $('#content-grid').html("<div id='msgHistoryNotExist'>" + I18N.i18nText('msgHistoryNotExist') + "</div>");
}else{ }else{
$('#control-sort-titlekana').css('display','block'); $('#control-sort-titlekana').css('display','block');
$('#separate').css('display','block'); $('#separate').css('display','block');
...@@ -1660,12 +1643,12 @@ function IsExistContent(strContentId) { ...@@ -1660,12 +1643,12 @@ function IsExistContent(strContentId) {
function changeLanguageCallBackFunction(){ function changeLanguageCallBackFunction(){
handleLanguage(); handleLanguage();
document.title = i18nText('dspViewHistory') + ' | ' + i18nText('sysAppTitle'); document.title = I18N.i18nText('dspViewHistory') + ' | ' + I18N.i18nText('sysAppTitle');
}; };
function displayResultNoRecord(){ function displayResultNoRecord(){
i18nReplaceText(); I18N.i18nReplaceText();
$('#content-grid').html("<div id='msgHistoryNotExist'>" + i18nText('msgHistoryNotExist') + "</div>"); $('#content-grid').html("<div id='msgHistoryNotExist'>" + I18N.i18nText('msgHistoryNotExist') + "</div>");
$('#control-nextrecord').css('visibility','hidden'); $('#control-nextrecord').css('visibility','hidden');
$('.control_sort_on').hide(); $('.control_sort_on').hide();
$('.control_sort_off').show(); $('.control_sort_off').show();
...@@ -1811,13 +1794,13 @@ function renderContentAfterSort(contentSortArr){ ...@@ -1811,13 +1794,13 @@ function renderContentAfterSort(contentSortArr){
+ ' <a id="title' + post.contentid + '" class="dialog name" contentid="' + post.contentid + '">' + COMMON.truncate(COMMON.htmlEncode(post.contenttitle), 25) + '</a>' + ' <a id="title' + post.contentid + '" class="dialog name" contentid="' + post.contentid + '">' + COMMON.truncate(COMMON.htmlEncode(post.contenttitle), 25) + '</a>'
+ ' <div class="info">' + ' <div class="info">'
+ ' <ul class="date">' + ' <ul class="date">'
+ ' <li><span class="lang" lang="txtPubDt">' + i18nText("txtPubDt") + '</span> : ' + outputDeliveryDate + '</li>' + ' <li><span class="lang" lang="txtPubDt">' + I18N.i18nText("txtPubDt") + '</span> : ' + outputDeliveryDate + '</li>'
+ ' <li><span class="lang" lang="txtViewDt">' + i18nText("txtViewDt") + '</span>:<span id="lblVdate' + post.contentid + '"> </span></li>' + ' <li><span class="lang" lang="txtViewDt">' + I18N.i18nText("txtViewDt") + '</span>:<span id="lblVdate' + post.contentid + '"> </span></li>'
+ ' </ul>' + ' </ul>'
+ ' <ul class="pic">' + ' <ul class="pic">'
+ ' <li><img src="' + DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentid + '" class="sticker" /></li>' + ' <li><img src="' + DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentid + '" class="sticker" /></li>'
+ ' <li><img src="' + DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentid + '" class="pen" /></li>' + ' <li><img src="' + DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentid + '" class="pen" /></li>'
+ ' <li><a class="read lang button-details" contentid="' + post.contentid + '" lang="txtRead">' + i18nText("txtRead") + '</a></li>' + ' <li><a class="read lang button-details" contentid="' + post.contentid + '" lang="txtRead">' + I18N.i18nText("txtRead") + '</a></li>'
+ ' </ul>' + ' </ul>'
+ ' </div>' + ' </div>'
+ ' </div>' + ' </div>'
...@@ -1838,13 +1821,13 @@ function renderContentAfterSort(contentSortArr){ ...@@ -1838,13 +1821,13 @@ function renderContentAfterSort(contentSortArr){
+ ' </a>' + ' </a>'
+ ' <div class="info">' + ' <div class="info">'
+ ' <ul class="date">' + ' <ul class="date">'
+ ' <li><span class="lang" lang="txtPubDt">'+i18nText("txtPubDt")+'</span> : ' + outputDeliveryDate + '</li>' + ' <li><span class="lang" lang="txtPubDt">'+I18N.i18nText("txtPubDt")+'</span> : ' + outputDeliveryDate + '</li>'
+ ' <li><span class="lang" lang="txtViewDt">'+i18nText("txtViewDt")+'</span>:<span id="lblVdate' + post.contentid + '"> </span></li>' + ' <li><span class="lang" lang="txtViewDt">'+I18N.i18nText("txtViewDt")+'</span>:<span id="lblVdate' + post.contentid + '"> </span></li>'
+ ' </ul>' + ' </ul>'
+ ' <ul class="pic">' + ' <ul class="pic">'
+ ' <li><img src="' + DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentid + '" class="sticker" /></li>' + ' <li><img src="' + DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentid + '" class="sticker" /></li>'
+ ' <li><img src="' + DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentid + '" class="pen" /></li>' + ' <li><img src="' + DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentid + '" class="pen" /></li>'
+ ' <li><a class="read lang button-details" contentid="' + post.contentid + '" lang="txtRead">'+i18nText("txtRead")+'</a></li>' + ' <li><a class="read lang button-details" contentid="' + post.contentid + '" lang="txtRead">'+I18N.i18nText("txtRead")+'</a></li>'
+ ' </ul>' + ' </ul>'
+ ' </div>' + ' </div>'
+ ' </div>' + ' </div>'
......
/// <reference path="../common/js/avweb.js" />
/// <reference path="../common/js/screenLock.js" />
/// <reference path="../common/js/common.js" />
/// <reference path="../common/js/i18n.js" />
/// <reference path="../common/js/jquery-1.8.1.min.js" />
/// <reference path="../common/js/jquery-ui-1.8.23.custom.min.js" />
/// <reference path="../common/js/jquery.toastmessage.js" />
/// <reference path="../common/js/pageViewer.js" />
/// <reference path="header.js" />
//Start Declare Variables //Start Declare Variables
//----Constant-----------// //----Constant-----------//
...@@ -63,7 +54,7 @@ $(document).ready(function () { ...@@ -63,7 +54,7 @@ $(document).ready(function () {
return; return;
} }
document.title = i18nText('dspHome') + ' | ' + i18nText('sysAppTitle'); document.title = I18N.i18nText('dspHome') + ' | ' + I18N.i18nText('sysAppTitle');
// Set bookmark screen // Set bookmark screen
ClientData.BookmarkScreen(ScreenIds.Home); ClientData.BookmarkScreen(ScreenIds.Home);
...@@ -2064,7 +2055,7 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid) ...@@ -2064,7 +2055,7 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid)
handleBackToTop(); handleBackToTop();
//changeLanguage(ClientData.userInfo_language()); //changeLanguage(ClientData.userInfo_language());
i18nReplaceText(); I18N.i18nReplaceText();
}); });
}; };
var genre_totalcontent = -1; var genre_totalcontent = -1;
...@@ -2856,16 +2847,16 @@ function refreshGrid() { ...@@ -2856,16 +2847,16 @@ function refreshGrid() {
function formatDisplayMoreRecord() { function formatDisplayMoreRecord() {
//changeLanguage(ClientData.userInfo_language()); //changeLanguage(ClientData.userInfo_language());
i18nReplaceText(); I18N.i18nReplaceText();
if (isShowBookShelf) { if (isShowBookShelf) {
$('#control-nextrecord').html(AVWEB.format(i18nText('dspViewMore'), returnNumberDispRecordForBookShelf()).toString()); $('#control-nextrecord').html(AVWEB.format(I18N.i18nText('dspViewMore'), returnNumberDispRecordForBookShelf()).toString());
} }
else if (!isShowBookShelf) { else if (!isShowBookShelf) {
$('#control-nextrecord').html(AVWEB.format(i18nText('dspViewMore'), returnNumberDispRecordForList())); $('#control-nextrecord').html(AVWEB.format(I18N.i18nText('dspViewMore'), returnNumberDispRecordForList()));
} }
else { else {
$('#control-nextrecord').html(AVWEB.format(i18nText('dspViewMore'), returnNumberDispRecordForBookShelf())); $('#control-nextrecord').html(AVWEB.format(I18N.i18nText('dspViewMore'), returnNumberDispRecordForBookShelf()));
} }
}; };
...@@ -3167,7 +3158,7 @@ function SyncMarkingPages() { ...@@ -3167,7 +3158,7 @@ function SyncMarkingPages() {
function changeLanguageCallBackFunction() { function changeLanguageCallBackFunction() {
handleLanguage(); handleLanguage();
formatDisplayMoreRecord(); formatDisplayMoreRecord();
document.title = i18nText('dspHome') + ' | ' + i18nText('sysAppTitle'); document.title = I18N.i18nText('dspHome') + ' | ' + I18N.i18nText('sysAppTitle');
}; };
//function truncate(strInput, length) { //function truncate(strInput, length) {
......
...@@ -31,7 +31,7 @@ LOGIN.loadLoginInfo = function() { ...@@ -31,7 +31,7 @@ LOGIN.loadLoginInfo = function() {
//Initial Screen //Initial Screen
LOGIN.initialScreen = function() { LOGIN.initialScreen = function() {
//Check Last time display language //Check Last time display language
//ClientData.userInfo_language(localStorage.getItem(avwsys_storagekey)); //ClientData.userInfo_language(localStorage.getItem(I18N.avwsys_storagekey));
if (ClientData.userInfo_rememberLogin()) { if (ClientData.userInfo_rememberLogin()) {
LOGIN.loadLoginInfo(); LOGIN.loadLoginInfo();
} }
...@@ -88,21 +88,21 @@ LOGIN.checkValidation = function() { ...@@ -88,21 +88,21 @@ LOGIN.checkValidation = function() {
var msgError = $('#main-error-message'); var msgError = $('#main-error-message');
if (!ValidationUtil.CheckRequiredForText(accountPath)) { if (!ValidationUtil.CheckRequiredForText(accountPath)) {
LOGIN.login_errorMessage = ""; LOGIN.login_errorMessage = "";
msgError.html(i18nText('msgLoginEmpty')); msgError.html(I18N.i18nText('msgLoginEmpty'));
msgError.attr('lang', 'msgLoginEmpty'); msgError.attr('lang', 'msgLoginEmpty');
msgError.show(); msgError.show();
return false; return false;
} }
else if (!ValidationUtil.CheckRequiredForText(loginId)) { else if (!ValidationUtil.CheckRequiredForText(loginId)) {
LOGIN.login_errorMessage = ""; LOGIN.login_errorMessage = "";
msgError.html(i18nText('msgLoginEmpty')); msgError.html(I18N.i18nText('msgLoginEmpty'));
msgError.attr('lang', 'msgLoginEmpty'); msgError.attr('lang', 'msgLoginEmpty');
msgError.show(); msgError.show();
return false; return false;
} }
else if (!ValidationUtil.CheckRequiredForText(password)) { else if (!ValidationUtil.CheckRequiredForText(password)) {
LOGIN.login_errorMessage = ""; LOGIN.login_errorMessage = "";
msgError.html(i18nText('msgLoginEmpty')); msgError.html(I18N.i18nText('msgLoginEmpty'));
msgError.attr('lang', 'msgLoginEmpty'); msgError.attr('lang', 'msgLoginEmpty');
msgError.show(); msgError.show();
return false; return false;
...@@ -121,14 +121,14 @@ LOGIN.checkDialogValidation = function() { ...@@ -121,14 +121,14 @@ LOGIN.checkDialogValidation = function() {
if (!ValidationUtil.CheckRequiredForText(currentPass)) { if (!ValidationUtil.CheckRequiredForText(currentPass)) {
LOGIN.login_errorMessage = ""; LOGIN.login_errorMessage = "";
msgError.html(i18nText('msgPwdEmpty')); msgError.html(I18N.i18nText('msgPwdEmpty'));
msgError.attr('lang', 'msgPwdEmpty'); msgError.attr('lang', 'msgPwdEmpty');
msgError.show(); msgError.show();
return false; return false;
} }
else if (!ValidationUtil.CheckRequiredForText(newPass)) { else if (!ValidationUtil.CheckRequiredForText(newPass)) {
LOGIN.login_errorMessage = ""; LOGIN.login_errorMessage = "";
msgError.html(i18nText('msgPwdEmpty')); msgError.html(I18N.i18nText('msgPwdEmpty'));
msgError.attr('lang', 'msgPwdEmpty'); msgError.attr('lang', 'msgPwdEmpty');
msgError.show(); msgError.show();
return false; return false;
...@@ -137,7 +137,7 @@ LOGIN.checkDialogValidation = function() { ...@@ -137,7 +137,7 @@ LOGIN.checkDialogValidation = function() {
{ {
if(newPass != confirmPass){ if(newPass != confirmPass){
LOGIN.login_errorMessage = ""; LOGIN.login_errorMessage = "";
msgError.html(i18nText('msgPwdNotMatch')); msgError.html(I18N.i18nText('msgPwdNotMatch'));
msgError.attr('lang', 'msgPwdNotMatch'); msgError.attr('lang', 'msgPwdNotMatch');
msgError.show(); msgError.show();
return false; return false;
...@@ -313,7 +313,7 @@ LOGIN.processLogin = function() { ...@@ -313,7 +313,7 @@ LOGIN.processLogin = function() {
} }
else { else {
LOGIN.login_errorMessage = data.errorMessage; LOGIN.login_errorMessage = data.errorMessage;
$('#main-error-message').html(AVWEB.format(i18nText('msgLoginErrWrong'), data.errorMessage).toString()); $('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), data.errorMessage).toString());
$('#main-error-message').show(); $('#main-error-message').show();
} }
...@@ -322,9 +322,9 @@ LOGIN.processLogin = function() { ...@@ -322,9 +322,9 @@ LOGIN.processLogin = function() {
if (xhr.responseText && xhr.status != 0) { if (xhr.responseText && xhr.status != 0) {
LOGIN.login_errorMessage = JSON.parse(xhr.responseText).errorMessage; LOGIN.login_errorMessage = JSON.parse(xhr.responseText).errorMessage;
$('#main-error-message').html(AVWEB.format(i18nText('msgLoginErrWrong'), JSON.parse(xhr.responseText).errorMessage).toString()); $('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), JSON.parse(xhr.responseText).errorMessage).toString());
} else { } else {
$('#main-error-message').html(AVWEB.format(i18nText('msgLoginErrWrong'), 'E001')); $('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), 'E001'));
} }
$('#main-error-message').show(); $('#main-error-message').show();
}); });
...@@ -355,7 +355,7 @@ LOGIN.changePasswordProcess = function(){ ...@@ -355,7 +355,7 @@ LOGIN.changePasswordProcess = function(){
avwScreenMove("abvw/" + ScreenIds.Home); avwScreenMove("abvw/" + ScreenIds.Home);
} }
else { else {
$('#dialog-error-message').html(i18nText('msgPwdOldWrong')); $('#dialog-error-message').html(I18N.i18nText('msgPwdOldWrong'));
$('#dialog-error-message').show(); $('#dialog-error-message').show();
} }
}, },
...@@ -374,30 +374,30 @@ LOGIN.changePasswordProcess = function(){ ...@@ -374,30 +374,30 @@ LOGIN.changePasswordProcess = function(){
//Change Language Japanese //Change Language Japanese
LOGIN.changeLanguageJa = function(){ LOGIN.changeLanguageJa = function(){
changeLanguage(Consts.ConstLanguage_Ja); changeLanguage(Consts.ConstLanguage_Ja);
document.title = i18nText('dspLogin') + ' | ' + i18nText('sysAppTitle'); document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle');
//ClientData.userInfo_language(Consts.ConstLanguage_Ja); //ClientData.userInfo_language(Consts.ConstLanguage_Ja);
if (LOGIN.login_errorMessage != ""){ if (LOGIN.login_errorMessage != ""){
$('#main-error-message').html(AVWEB.format(i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString()); $('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString());
} }
}; };
//Change Language Korean //Change Language Korean
LOGIN.changeLanguageKo = function(){ LOGIN.changeLanguageKo = function(){
changeLanguage(Consts.ConstLanguage_Ko); changeLanguage(Consts.ConstLanguage_Ko);
document.title = i18nText('dspLogin') + ' | ' + i18nText('sysAppTitle'); document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle');
//ClientData.userInfo_language(Consts.ConstLanguage_Ko); //ClientData.userInfo_language(Consts.ConstLanguage_Ko);
if (LOGIN.login_errorMessage != ""){ if (LOGIN.login_errorMessage != ""){
$('#main-error-message').html(AVWEB.format(i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString()); $('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString());
} }
}; };
//Change Language English //Change Language English
LOGIN.changeLanguageEn = function(){ LOGIN.changeLanguageEn = function(){
changeLanguage(Consts.ConstLanguage_En); changeLanguage(Consts.ConstLanguage_En);
document.title = i18nText('dspLogin') + ' | ' + i18nText('sysAppTitle'); document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle');
//ClientData.userInfo_language(Consts.ConstLanguage_En); //ClientData.userInfo_language(Consts.ConstLanguage_En);
if (LOGIN.login_errorMessage != ""){ if (LOGIN.login_errorMessage != ""){
$('#main-error-message').html(AVWEB.format(i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString()); $('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString());
} }
}; };
...@@ -523,7 +523,7 @@ $(document).ready(function (e) { ...@@ -523,7 +523,7 @@ $(document).ready(function (e) {
avwUserSessionObj = null; avwUserSessionObj = null;
// create new session // create new session
avwCreateUserSession(); avwCreateUserSession();
initi18n(); I18N.initi18n();
var sysSettings = avwSysSetting(); // get info in conf.json var sysSettings = avwSysSetting(); // get info in conf.json
...@@ -599,7 +599,7 @@ $(document).ready(function (e) { ...@@ -599,7 +599,7 @@ $(document).ready(function (e) {
// init login for normal user // init login for normal user
LOGIN.initLoginNormalUser = function() { LOGIN.initLoginNormalUser = function() {
document.title = i18nText('dspLogin') + ' | ' + i18nText('sysAppTitle'); document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle');
//Initial Screen //Initial Screen
LOGIN.initialScreen(); LOGIN.initialScreen();
...@@ -622,7 +622,7 @@ LOGIN.initLoginNormalUser = function() { ...@@ -622,7 +622,7 @@ LOGIN.initLoginNormalUser = function() {
// init login for anonymous user // init login for anonymous user
LOGIN.initLoginAnonymousUser = function() { LOGIN.initLoginAnonymousUser = function() {
document.title = i18nText('dspLogin') + ' | ' + i18nText('sysAppTitle'); document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle');
var sysSettings = avwSysSetting(); // get info in conf.json var sysSettings = avwSysSetting(); // get info in conf.json
var loginId = sysSettings.anonymousLoginId; var loginId = sysSettings.anonymousLoginId;
...@@ -652,8 +652,8 @@ LOGIN.initLoginAnonymousUser = function() { ...@@ -652,8 +652,8 @@ LOGIN.initLoginAnonymousUser = function() {
//clear session of old anonymous user //clear session of old anonymous user
//SessionStorageUtils.clear(); //SessionStorageUtils.clear();
//警告表示を組み込んだら i18nText()の値が未定義になるので言語リソース再読み込み //警告表示を組み込んだら I18N.i18nText()の値が未定義になるので言語リソース再読み込み
initi18n(); I18N.initi18n();
//avwUserSessionObj = null; //avwUserSessionObj = null;
// create new session for anonymous user // create new session for anonymous user
...@@ -706,23 +706,23 @@ LOGIN.initLoginAnonymousUser = function() { ...@@ -706,23 +706,23 @@ LOGIN.initLoginAnonymousUser = function() {
} }
else { else {
if (data.errorMessage != null && data.errorMessage != undefined) { if (data.errorMessage != null && data.errorMessage != undefined) {
LOGIN.showMessageErrorLoginAnonymous(AVWEB.format(i18nText('msgAnonymousLoginErr'), data.errorMessage).toString()); LOGIN.showMessageErrorLoginAnonymous(AVWEB.format(I18N.i18nText('msgAnonymousLoginErr'), data.errorMessage).toString());
} }
else { else {
LOGIN.showMessageErrorLoginAnonymous(i18nText('msgAnonymousLoginErr2')); LOGIN.showMessageErrorLoginAnonymous(I18N.i18nText('msgAnonymousLoginErr2'));
} }
} }
}, function (xhr, statusText, errorThrown) { }, function (xhr, statusText, errorThrown) {
if (xhr.responseText && xhr.status != 0) { if (xhr.responseText && xhr.status != 0) {
var errorMessage = JSON.parse(xhr.responseText).errorMessage; var errorMessage = JSON.parse(xhr.responseText).errorMessage;
if (errorMessage) { if (errorMessage) {
LOGIN.showMessageErrorLoginAnonymous(AVWEB.format(i18nText('msgAnonymousLoginErr'), errorMessage).toString()); LOGIN.showMessageErrorLoginAnonymous(AVWEB.format(I18N.i18nText('msgAnonymousLoginErr'), errorMessage).toString());
} }
else { else {
LOGIN.showMessageErrorLoginAnonymous(i18nText('msgAnonymousLoginErr2')); LOGIN.showMessageErrorLoginAnonymous(I18N.i18nText('msgAnonymousLoginErr2'));
} }
} else { } else {
LOGIN.showMessageErrorLoginAnonymous(i18nText('msgAnonymousLoginErr2')); LOGIN.showMessageErrorLoginAnonymous(I18N.i18nText('msgAnonymousLoginErr2'));
} }
}); });
}; };
...@@ -730,7 +730,7 @@ LOGIN.initLoginAnonymousUser = function() { ...@@ -730,7 +730,7 @@ LOGIN.initLoginAnonymousUser = function() {
// init login for getits user // init login for getits user
LOGIN.initLoginGetitsUser = function() { LOGIN.initLoginGetitsUser = function() {
document.title = i18nText('dspLogin') + ' | ' + i18nText('sysAppTitle'); document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle');
//var sysSettings = avwSysSetting(); // get info in conf.json //var sysSettings = avwSysSetting(); // get info in conf.json
...@@ -738,7 +738,7 @@ LOGIN.initLoginGetitsUser = function() { ...@@ -738,7 +738,7 @@ LOGIN.initLoginGetitsUser = function() {
urlpath: ClientData.userInfo_accountPath() urlpath: ClientData.userInfo_accountPath()
}; };
initi18n(); I18N.initi18n();
avwCmsApiWithUrl(ClientData.conf_apiLoginUrl(), ClientData.userInfo_accountPath(), 'webClientGetitsLogin', 'post', params, function (data) { avwCmsApiWithUrl(ClientData.conf_apiLoginUrl(), ClientData.userInfo_accountPath(), 'webClientGetitsLogin', 'post', params, function (data) {
...@@ -746,8 +746,8 @@ LOGIN.initLoginGetitsUser = function() { ...@@ -746,8 +746,8 @@ LOGIN.initLoginGetitsUser = function() {
//clear session of old anonymous user //clear session of old anonymous user
//SessionStorageUtils.clear(); //SessionStorageUtils.clear();
//警告表示を組み込んだら i18nText()の値が未定義になるので言語リソース再読み込み //警告表示を組み込んだら I18N.i18nText()の値が未定義になるので言語リソース再読み込み
//initi18n(); //I18N.initi18n();
//avwUserSessionObj = null; //avwUserSessionObj = null;
// create new session for getits user // create new session for getits user
...@@ -793,23 +793,23 @@ LOGIN.initLoginGetitsUser = function() { ...@@ -793,23 +793,23 @@ LOGIN.initLoginGetitsUser = function() {
} }
else { else {
if (data.errorMessage != null && data.errorMessage != undefined) { if (data.errorMessage != null && data.errorMessage != undefined) {
LOGIN.showMessageErrorLoginAnonymous(AVWEB.format(i18nText('msgAnonymousLoginErr'), data.errorMessage).toString()); LOGIN.showMessageErrorLoginAnonymous(AVWEB.format(I18N.i18nText('msgAnonymousLoginErr'), data.errorMessage).toString());
} }
else { else {
LOGIN.showMessageErrorLoginAnonymous(i18nText('msgAnonymousLoginErr2')); LOGIN.showMessageErrorLoginAnonymous(I18N.i18nText('msgAnonymousLoginErr2'));
} }
} }
}, function (xhr, statusText, errorThrown) { }, function (xhr, statusText, errorThrown) {
if (xhr.responseText && xhr.status != 0) { if (xhr.responseText && xhr.status != 0) {
var errorMessage = JSON.parse(xhr.responseText).errorMessage; var errorMessage = JSON.parse(xhr.responseText).errorMessage;
if (errorMessage) { if (errorMessage) {
LOGIN.showMessageErrorLoginAnonymous(AVWEB.format(i18nText('msgAnonymousLoginErr'), errorMessage).toString()); LOGIN.showMessageErrorLoginAnonymous(AVWEB.format(I18N.i18nText('msgAnonymousLoginErr'), errorMessage).toString());
} }
else { else {
LOGIN.showMessageErrorLoginAnonymous(i18nText('msgAnonymousLoginErr2')); LOGIN.showMessageErrorLoginAnonymous(I18N.i18nText('msgAnonymousLoginErr2'));
} }
} else { } else {
LOGIN.showMessageErrorLoginAnonymous(i18nText('msgAnonymousLoginErr2')); LOGIN.showMessageErrorLoginAnonymous(I18N.i18nText('msgAnonymousLoginErr2'));
} }
}); });
}; };
......
/// 設定変更画面 /// 設定変更画面
/// <reference path="../common/js/avweb.js" />
/// <reference path="../common/js/screenLock.js" />
/// <reference path="../common/js/common.js" />
/// <reference path="../common/js/i18n.js" />
/// <reference path="../common/js/jquery-1.8.1.min.js" />
/// <reference path="../common/js/jquery-ui-1.8.23.custom.min.js" />
/// <reference path="../common/js/jquery.toastmessage.js" />
/// <reference path="../common/js/pageViewer.js" />
// Init function of page // Init function of page
$(document).ready(function () { $(document).ready(function () {
...@@ -22,7 +7,7 @@ $(document).ready(function () { ...@@ -22,7 +7,7 @@ $(document).ready(function () {
COMMON.ToogleLogoutNortice(); COMMON.ToogleLogoutNortice();
COMMON.LockScreen(); COMMON.LockScreen();
document.title = i18nText('dspSetting') + ' | ' + i18nText('sysAppTitle'); document.title = I18N.i18nText('dspSetting') + ' | ' + I18N.i18nText('sysAppTitle');
// Set bookmark screen // Set bookmark screen
ClientData.BookmarkScreen(ScreenIds.Setting); ClientData.BookmarkScreen(ScreenIds.Setting);
...@@ -132,7 +117,7 @@ $(document).ready(function () { ...@@ -132,7 +117,7 @@ $(document).ready(function () {
event of changing language event of changing language
*/ */
function changeLanguageCallBackFunction() { function changeLanguageCallBackFunction() {
document.title = i18nText('dspSetting') + ' | ' + i18nText('sysAppTitle'); document.title = I18N.i18nText('dspSetting') + ' | ' + I18N.i18nText('sysAppTitle');
}; };
/* /*
...@@ -316,7 +301,7 @@ function dspOptBk_OK_Click(e) { ...@@ -316,7 +301,7 @@ function dspOptBk_OK_Click(e) {
// $().toastmessage('showToast', { // $().toastmessage('showToast', {
// type: 'error', // type: 'error',
// sticky: true, // sticky: true,
// text: i18nText('msgBackupFailed') // text: I18N.i18nText('msgBackupFailed')
// }); // });
// }); // });
...@@ -389,7 +374,7 @@ function setStatusButtonBackup() { ...@@ -389,7 +374,7 @@ function setStatusButtonBackup() {
// $().toastmessage('showToast', { // $().toastmessage('showToast', {
// type: 'success', // type: 'success',
// sticky: true, // sticky: true,
// text: i18nText('msgBackupSuccess') // text: I18N.i18nText('msgBackupSuccess')
// }); // });
// } // }
// else { // else {
...@@ -398,7 +383,7 @@ function setStatusButtonBackup() { ...@@ -398,7 +383,7 @@ function setStatusButtonBackup() {
// $().toastmessage('showToast', { // $().toastmessage('showToast', {
// type: 'error', // type: 'error',
// sticky: true, // sticky: true,
// text: i18nText('msgBackupFailed') // text: I18N.i18nText('msgBackupFailed')
// }); // });
// } // }
//}; //};
...@@ -431,7 +416,7 @@ function dspOptRes_OK_Click(e) { ...@@ -431,7 +416,7 @@ function dspOptRes_OK_Click(e) {
// $().toastmessage('showToast', { // $().toastmessage('showToast', {
// type: 'error', // type: 'error',
// sticky: true, // sticky: true,
// text: i18nText('msgRestoreFailed') // text: I18N.i18nText('msgRestoreFailed')
// }); // });
// } // }
// else { // else {
...@@ -466,10 +451,10 @@ function dspOptRes_OK_Click(e) { ...@@ -466,10 +451,10 @@ function dspOptRes_OK_Click(e) {
// restore Marking Data // restore Marking Data
var res = restoreMarkingData(); var res = restoreMarkingData();
if (!res) { if (!res) {
$('#divResultMessage').append("<div class='toast-item-image-error toast-item-message'>" + i18nText('txtBkMarking') + " " + i18nText('msgRestoreFailed') + "</div>"); $('#divResultMessage').append("<div class='toast-item-image-error toast-item-message'>" + I18N.i18nText('txtBkMarking') + " " + I18N.i18nText('msgRestoreFailed') + "</div>");
} }
else { else {
$('#divResultMessage').append("<div class='toast-item-image-success toast-item-message'>" + i18nText('txtBkMarking') + " " + i18nText('msgRestoreSuccess') + "</div>"); $('#divResultMessage').append("<div class='toast-item-image-success toast-item-message'>" + I18N.i18nText('txtBkMarking') + " " + I18N.i18nText('msgRestoreSuccess') + "</div>");
} }
} }
if (isRestoreMemo) { if (isRestoreMemo) {
...@@ -477,10 +462,10 @@ function dspOptRes_OK_Click(e) { ...@@ -477,10 +462,10 @@ function dspOptRes_OK_Click(e) {
// restore Memo data // restore Memo data
var res = restoreMemoData(); var res = restoreMemoData();
if (!res) { if (!res) {
$('#divResultMessage').append("<div class='toast-item-image-error toast-item-message'>" + i18nText('txtBkMemo') + " " + i18nText('msgRestoreFailed') + "</div>"); $('#divResultMessage').append("<div class='toast-item-image-error toast-item-message'>" + I18N.i18nText('txtBkMemo') + " " + I18N.i18nText('msgRestoreFailed') + "</div>");
} }
else { else {
$('#divResultMessage').append("<div class='toast-item-image-success toast-item-message'>" + i18nText('txtBkMemo') + " " + i18nText('msgRestoreSuccess') + "</div>"); $('#divResultMessage').append("<div class='toast-item-image-success toast-item-message'>" + I18N.i18nText('txtBkMemo') + " " + I18N.i18nText('msgRestoreSuccess') + "</div>");
} }
} }
if (isRestoreBookmark) { if (isRestoreBookmark) {
...@@ -488,10 +473,10 @@ function dspOptRes_OK_Click(e) { ...@@ -488,10 +473,10 @@ function dspOptRes_OK_Click(e) {
// restore Bookmark data // restore Bookmark data
var res = restoreBookmarkData(); var res = restoreBookmarkData();
if (!res) { if (!res) {
$('#divResultMessage').append("<div class='toast-item-image-error toast-item-message'>" + i18nText('txtBkShiori') + " " + i18nText('msgRestoreFailed') + "</div>"); $('#divResultMessage').append("<div class='toast-item-image-error toast-item-message'>" + I18N.i18nText('txtBkShiori') + " " + I18N.i18nText('msgRestoreFailed') + "</div>");
} }
else { else {
$('#divResultMessage').append("<div class='toast-item-image-success toast-item-message'>" + i18nText('txtBkShiori') + " " + i18nText('msgRestoreSuccess') + "</div>"); $('#divResultMessage').append("<div class='toast-item-image-success toast-item-message'>" + I18N.i18nText('txtBkShiori') + " " + I18N.i18nText('msgRestoreSuccess') + "</div>");
} }
} }
...@@ -522,7 +507,7 @@ function dspOptRes_OK_Click(e) { ...@@ -522,7 +507,7 @@ function dspOptRes_OK_Click(e) {
// $().toastmessage('showToast', { // $().toastmessage('showToast', {
// type: 'success', // type: 'success',
// sticky: true, // sticky: true,
// text: i18nText('msgRestoreSuccess') // text: I18N.i18nText('msgRestoreSuccess')
// }); // });
// } // }
//}; //};
...@@ -698,7 +683,7 @@ function dspSave_Click(e) { ...@@ -698,7 +683,7 @@ function dspSave_Click(e) {
$().toastmessage('showToast', { $().toastmessage('showToast', {
type: 'success', type: 'success',
sticky: true, sticky: true,
text: i18nText('msgSaveOk') text: I18N.i18nText('msgSaveOk')
}); });
}; };
...@@ -845,45 +830,45 @@ function dspPwdUpd1_Click(e) { ...@@ -845,45 +830,45 @@ function dspPwdUpd1_Click(e) {
// Check validation // Check validation
if (!ValidationUtil.CheckRequiredForText(getCurrentPassword())) { if (!ValidationUtil.CheckRequiredForText(getCurrentPassword())) {
isOK = false; isOK = false;
//alert(i18nText('msgPwdEmpty')); //alert(I18N.i18nText('msgPwdEmpty'));
/* show error messages */ /* show error messages */
// $().toastmessage({ position: 'middle-center' }); // $().toastmessage({ position: 'middle-center' });
// $().toastmessage('showToast', { // $().toastmessage('showToast', {
// type: 'error', // type: 'error',
// sticky: true, // sticky: true,
// text: i18nText('msgPwdEmpty') // text: I18N.i18nText('msgPwdEmpty')
//}); //});
msgError.html(i18nText('msgPwdEmpty')); msgError.html(I18N.i18nText('msgPwdEmpty'));
msgError.show(); msgError.show();
} }
else { else {
if (!ValidationUtil.CheckRequiredForText(getNewPassword())) { if (!ValidationUtil.CheckRequiredForText(getNewPassword())) {
isOK = false; isOK = false;
//alert(i18nText('msgPwdEmpty')); //alert(I18N.i18nText('msgPwdEmpty'));
/* show error messages */ /* show error messages */
//$().toastmessage({ position: 'middle-center' }); //$().toastmessage({ position: 'middle-center' });
// $().toastmessage('showToast', { // $().toastmessage('showToast', {
// type: 'error', // type: 'error',
// sticky: true, // sticky: true,
// text: i18nText('msgPwdEmpty') // text: I18N.i18nText('msgPwdEmpty')
//}); //});
msgError.html(i18nText('msgPwdEmpty')); msgError.html(I18N.i18nText('msgPwdEmpty'));
msgError.show(); msgError.show();
} }
else { else {
if (getNewPassword() != getNewPasswordRe()) { if (getNewPassword() != getNewPasswordRe()) {
isOK = false; isOK = false;
//alert(i18nText('msgPwdNotMatch')); //alert(I18N.i18nText('msgPwdNotMatch'));
/* show error messages */ /* show error messages */
//$().toastmessage({ position: 'middle-center' }); //$().toastmessage({ position: 'middle-center' });
// $().toastmessage('showToast', { // $().toastmessage('showToast', {
// type: 'error', // type: 'error',
// sticky: true, // sticky: true,
// text: i18nText('msgPwdNotMatch') // text: I18N.i18nText('msgPwdNotMatch')
// }); // });
msgError.html(i18nText('msgPwdNotMatch')); msgError.html(I18N.i18nText('msgPwdNotMatch'));
msgError.show(); msgError.show();
} }
...@@ -951,11 +936,11 @@ function avwCmsApi_passwordChange_success(data) { ...@@ -951,11 +936,11 @@ function avwCmsApi_passwordChange_success(data) {
//$().toastmessage('showToast', { //$().toastmessage('showToast', {
// type: 'error', // type: 'error',
// sticky: true, // sticky: true,
// text: i18nText('msgPwdChangeNG') // text: I18N.i18nText('msgPwdChangeNG')
//}); //});
//alert(i18nText('msgPwdOldWrong')); //alert(I18N.i18nText('msgPwdOldWrong'));
msgError.html(i18nText('msgPwdChangeNG')); msgError.html(I18N.i18nText('msgPwdChangeNG'));
msgError.show(); msgError.show();
} }
else { else {
...@@ -967,7 +952,7 @@ function avwCmsApi_passwordChange_success(data) { ...@@ -967,7 +952,7 @@ function avwCmsApi_passwordChange_success(data) {
$().toastmessage('showToast', { $().toastmessage('showToast', {
type: 'success', type: 'success',
sticky: true, sticky: true,
text: i18nText('msgPwdChangeOK') text: I18N.i18nText('msgPwdChangeOK')
}); });
} }
} }
...@@ -977,7 +962,7 @@ function avwCmsApi_passwordChange_fail(xhr, b, c) { ...@@ -977,7 +962,7 @@ function avwCmsApi_passwordChange_fail(xhr, b, c) {
/* show error messages */ /* show error messages */
var msgError = $('#dialog-error-message'); var msgError = $('#dialog-error-message');
//msgError.html(i18nText('msgPwdChangeNG')); //msgError.html(I18N.i18nText('msgPwdChangeNG'));
msgError.html(JSON.parse(xhr.responseText).errorMessage); msgError.html(JSON.parse(xhr.responseText).errorMessage);
msgError.show(); msgError.show();
} }
......
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