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