Commit d2982151 by Masaru Abe

common.jsリファクタリング

parent c99fd4b4
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
新着メッセージがあります!!! 新着メッセージがあります!!!
</div> </div>
<div class="cnt_header"> <div class="cnt_header">
<a class="logo" href="javascript:void(0);" onclick="avwScreenMove(ScreenIds.Home)"> </a> <a class="logo" href="javascript:void(0);" onclick="avwScreenMove(COMMON.ScreenIds.Home)"> </a>
<div class="menu_language"> <div class="menu_language">
<div class="clearfix"> <div class="clearfix">
<ul class="floatL"> <ul class="floatL">
......
...@@ -784,8 +784,8 @@ function showSystemError() { ...@@ -784,8 +784,8 @@ function showSystemError() {
if( !HEADER.webLogoutEvent() ){ if( !HEADER.webLogoutEvent() ){
//ログアウト出来なかった //ログアウト出来なかった
SessionStorageUtils.clear(); SessionStorageUtils.clear();
avwUserSetting().remove(Keys.userInfo_sid); avwUserSetting().remove(COMMON.Keys.userInfo_sid);
avwScreenMove(ScreenIds.Login); avwScreenMove(COMMON.ScreenIds.Login);
} }
} }
}); });
......
...@@ -27,7 +27,7 @@ COMMON.ThumbnailForOtherType = { ...@@ -27,7 +27,7 @@ COMMON.ThumbnailForOtherType = {
// ============================================================================================= // =============================================================================================
// Constants [start] // Constants [start]
// ============================================================================================= // =============================================================================================
var Consts = { COMMON.Consts = {
// Display mode: 1 -> Bookshelf // Display mode: 1 -> Bookshelf
ConstDisplayMode_BookShelf: 1, ConstDisplayMode_BookShelf: 1,
// Display mode: 0 -> List // Display mode: 0 -> List
...@@ -64,7 +64,7 @@ var Consts = { ...@@ -64,7 +64,7 @@ var Consts = {
}; };
/*Content Type Keys*/ /*Content Type Keys*/
var ContentTypeKeys = { COMMON.ContentTypeKeys = {
Type_PDF : 'pdf', Type_PDF : 'pdf',
Type_Image : 'image', Type_Image : 'image',
Type_Video : 'movie', Type_Video : 'movie',
...@@ -79,7 +79,7 @@ var ContentTypeKeys = { ...@@ -79,7 +79,7 @@ var ContentTypeKeys = {
/* /*
Define short keys for content view Define short keys for content view
*/ */
var ShortKeys = { COMMON.ShortKeys = {
// Move previous: arrow left <- // Move previous: arrow left <-
MovePrevious: 37, MovePrevious: 37,
// Move next: arrow right -> // Move next: arrow right ->
...@@ -108,7 +108,7 @@ var ShortKeys = { ...@@ -108,7 +108,7 @@ var ShortKeys = {
// Define all keys for local/session storage [start] // Define all keys for local/session storage [start]
// ------------------------------------------------- // -------------------------------------------------
var ScreenIds = { COMMON.ScreenIds = {
Login: './../login.html', Login: './../login.html',
Home : 'home.html?#UPDATEID#', Home : 'home.html?#UPDATEID#',
ContentView : 'contentview.html?#UPDATEID#', ContentView : 'contentview.html?#UPDATEID#',
...@@ -118,7 +118,7 @@ var ScreenIds = { ...@@ -118,7 +118,7 @@ var ScreenIds = {
History: 'history.html?#UPDATEID#' History: 'history.html?#UPDATEID#'
}; };
var Keys = { COMMON.Keys = {
zoom_ratioPre: 'zoom_ratioPre', zoom_ratioPre: 'zoom_ratioPre',
IsRefresh: 'IsRefresh', IsRefresh: 'IsRefresh',
...@@ -571,14 +571,14 @@ COMMON.operateData = function(args, strKey, returnDefaultData) { ...@@ -571,14 +571,14 @@ COMMON.operateData = function(args, strKey, returnDefaultData) {
var ClientData = { var ClientData = {
zoom_ratioPre: function (data) { zoom_ratioPre: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.zoom_ratioPre, JSON.stringify(data)); SessionStorageUtils.set(COMMON.Keys.zoom_ratioPre, JSON.stringify(data));
} else { } else {
if (SessionStorageUtils.get(Keys.zoom_ratioPre) != 'undefined' if (SessionStorageUtils.get(COMMON.Keys.zoom_ratioPre) != 'undefined'
&& SessionStorageUtils.get(Keys.zoom_ratioPre) != undefined && SessionStorageUtils.get(COMMON.Keys.zoom_ratioPre) != undefined
&& SessionStorageUtils.get(Keys.zoom_ratioPre) != '' && SessionStorageUtils.get(COMMON.Keys.zoom_ratioPre) != ''
&& SessionStorageUtils.get(Keys.zoom_ratioPre) != null && SessionStorageUtils.get(COMMON.Keys.zoom_ratioPre) != null
&& SessionStorageUtils.get(Keys.zoom_ratioPre) != 'null') { && SessionStorageUtils.get(COMMON.Keys.zoom_ratioPre) != 'null') {
return JSON.parse(SessionStorageUtils.get(Keys.zoom_ratioPre)); return JSON.parse(SessionStorageUtils.get(COMMON.Keys.zoom_ratioPre));
} }
return 1; return 1;
} }
...@@ -586,503 +586,503 @@ var ClientData = { ...@@ -586,503 +586,503 @@ var ClientData = {
// Local :ユーザ情報(userInfo)_アカウントパス:String // Local :ユーザ情報(userInfo)_アカウントパス:String
userInfo_accountPath: function (data) { userInfo_accountPath: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
avwUserSetting().set(Keys.userInfo_accountPath, data); avwUserSetting().set(COMMON.Keys.userInfo_accountPath, data);
} else { } else {
return avwUserSetting().get(Keys.userInfo_accountPath); return avwUserSetting().get(COMMON.Keys.userInfo_accountPath);
} }
}, },
// Local: ユーザ情報(userInfo)_セッションID:String // Local: ユーザ情報(userInfo)_セッションID:String
userInfo_sid_local: function (data) { userInfo_sid_local: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
avwUserSetting().set(Keys.userInfo_sid, data); avwUserSetting().set(COMMON.Keys.userInfo_sid, data);
} else { } else {
return avwUserSetting().get(Keys.userInfo_sid); return avwUserSetting().get(COMMON.Keys.userInfo_sid);
} }
}, },
// Local :ユーザ情報(userInfo)_ログインID:String // Local :ユーザ情報(userInfo)_ログインID:String
userInfo_loginId: function (data) { userInfo_loginId: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
avwUserSetting().set(Keys.userInfo_loginId, data); avwUserSetting().set(COMMON.Keys.userInfo_loginId, data);
} else { } else {
return avwUserSetting().get(Keys.userInfo_loginId); return avwUserSetting().get(COMMON.Keys.userInfo_loginId);
} }
}, },
// Local :ユーザ情報(userInfo)_アカウント情報記憶フラグ:Char(Y:可能, N:不可) // Local :ユーザ情報(userInfo)_アカウント情報記憶フラグ:Char(Y:可能, N:不可)
userInfo_rememberLogin: function (data) { userInfo_rememberLogin: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
avwUserSetting().set(Keys.userInfo_rememberLogin, data); avwUserSetting().set(COMMON.Keys.userInfo_rememberLogin, data);
} else { } else {
return avwUserSetting().get(Keys.userInfo_rememberLogin); return avwUserSetting().get(COMMON.Keys.userInfo_rememberLogin);
} }
}, },
// Local // Local
JumpQueue: function (data) { JumpQueue: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.JumpQueue, []); COMMON.operateData(arguments, COMMON.Keys.JumpQueue, []);
} }
else { else {
return COMMON.operateData(arguments, Keys.JumpQueue, []); return COMMON.operateData(arguments, COMMON.Keys.JumpQueue, []);
} }
}, },
// Local // Local
ResourceVersion: function (data) { ResourceVersion: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.ResourceVersion, []); COMMON.operateData(arguments, COMMON.Keys.ResourceVersion, []);
} }
else { else {
return COMMON.operateData(arguments, Keys.ResourceVersion, []); return COMMON.operateData(arguments, COMMON.Keys.ResourceVersion, []);
} }
}, },
// Local // Local
ContentViewDetail: function (data) { ContentViewDetail: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.ContentViewDetail, []); COMMON.operateData(arguments, COMMON.Keys.ContentViewDetail, []);
} }
else { else {
return COMMON.operateData(arguments, Keys.ContentViewDetail, []); return COMMON.operateData(arguments, COMMON.Keys.ContentViewDetail, []);
} }
}, },
// Local // Local
MetaVersion: function (data) { MetaVersion: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.MetaVersion, []); COMMON.operateData(arguments, COMMON.Keys.MetaVersion, []);
} }
else { else {
return COMMON.operateData(arguments, Keys.MetaVersion, []); return COMMON.operateData(arguments, COMMON.Keys.MetaVersion, []);
} }
}, },
// Local // Local
ReadingContentIds: function (data) { ReadingContentIds: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.ReadingContentIds, []); COMMON.operateData(arguments, COMMON.Keys.ReadingContentIds, []);
} }
else { else {
return COMMON.operateData(arguments, Keys.ReadingContentIds, []); return COMMON.operateData(arguments, COMMON.Keys.ReadingContentIds, []);
} }
}, },
// Local: Bookmark collection // Local: Bookmark collection
BookMarkData: function (data) { BookMarkData: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.BookMarkData, []); COMMON.operateData(arguments, COMMON.Keys.BookMarkData, []);
} }
else { else {
return COMMON.operateData(arguments, Keys.BookMarkData, []); return COMMON.operateData(arguments, COMMON.Keys.BookMarkData, []);
} }
}, },
// Local: Marking collection // Local: Marking collection
MarkingData: function (data) { MarkingData: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.MarkingData, []); COMMON.operateData(arguments, COMMON.Keys.MarkingData, []);
} }
else { else {
return COMMON.operateData(arguments, Keys.MarkingData, []); return COMMON.operateData(arguments, COMMON.Keys.MarkingData, []);
} }
}, },
// Local: content log collection // Local: content log collection
ContentLogData: function (data) { ContentLogData: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.ContentLogData, []); COMMON.operateData(arguments, COMMON.Keys.ContentLogData, []);
} }
else { else {
return COMMON.operateData(arguments, Keys.ContentLogData, []); return COMMON.operateData(arguments, COMMON.Keys.ContentLogData, []);
} }
}, },
// Local: Memo collection // Local: Memo collection
MemoData: function (data) { MemoData: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.MemoData, []); COMMON.operateData(arguments, COMMON.Keys.MemoData, []);
} }
else { else {
return COMMON.operateData(arguments, Keys.MemoData, []); return COMMON.operateData(arguments, COMMON.Keys.MemoData, []);
} }
}, },
// Local // Local
IsJumpBack: function (data) { IsJumpBack: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.IsJumpBack, undefined); COMMON.operateData(arguments, COMMON.Keys.IsJumpBack, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.IsJumpBack, undefined); return COMMON.operateData(arguments, COMMON.Keys.IsJumpBack, undefined);
} }
}, },
// Local // Local
IsHideToolbar: function (data) { IsHideToolbar: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.IsHideToolbar, undefined); COMMON.operateData(arguments, COMMON.Keys.IsHideToolbar, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.IsHideToolbar, undefined); return COMMON.operateData(arguments, COMMON.Keys.IsHideToolbar, undefined);
} }
}, },
// Local // Local
IsAddingMarking: function (data) { IsAddingMarking: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.IsAddingMarking, undefined); COMMON.operateData(arguments, COMMON.Keys.IsAddingMarking, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.IsAddingMarking, undefined); return COMMON.operateData(arguments, COMMON.Keys.IsAddingMarking, undefined);
} }
}, },
// Local // Local
IsAddingMemo: function (data) { IsAddingMemo: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.IsAddingMemo, undefined); COMMON.operateData(arguments, COMMON.Keys.IsAddingMemo, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.IsAddingMemo, undefined); return COMMON.operateData(arguments, COMMON.Keys.IsAddingMemo, undefined);
} }
}, },
// Local // Local
IsDisplayMarking: function (data) { IsDisplayMarking: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.IsDisplayMarking, undefined); COMMON.operateData(arguments, COMMON.Keys.IsDisplayMarking, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.IsDisplayMarking, undefined); return COMMON.operateData(arguments, COMMON.Keys.IsDisplayMarking, undefined);
} }
}, },
// Local // Local
IsDisplayMemo: function (data) { IsDisplayMemo: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.IsDisplayMemo, undefined); COMMON.operateData(arguments, COMMON.Keys.IsDisplayMemo, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.IsDisplayMemo, undefined); return COMMON.operateData(arguments, COMMON.Keys.IsDisplayMemo, undefined);
} }
}, },
// Local // Local
MarkingType: function (data) { MarkingType: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.MarkingType, undefined); COMMON.operateData(arguments, COMMON.Keys.MarkingType, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.MarkingType, undefined); return COMMON.operateData(arguments, COMMON.Keys.MarkingType, undefined);
} }
}, },
// Local :ユーザオプション(userOpt)_ログアウトモード: Interger(0:logout with backup, 1:logout without backup) // Local :ユーザオプション(userOpt)_ログアウトモード: Interger(0:logout with backup, 1:logout without backup)
userOpt_logoutMode: function (data) { userOpt_logoutMode: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.userOpt_logoutMode, undefined); COMMON.operateData(arguments, COMMON.Keys.userOpt_logoutMode, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.userOpt_logoutMode, undefined); return COMMON.operateData(arguments, COMMON.Keys.userOpt_logoutMode, undefined);
} }
}, },
// Local // Local
BookmarkScreen: function (data) { BookmarkScreen: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.BookmarkScreen, undefined); COMMON.operateData(arguments, COMMON.Keys.BookmarkScreen, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.BookmarkScreen, undefined); return COMMON.operateData(arguments, COMMON.Keys.BookmarkScreen, undefined);
} }
}, },
// Local: isChangedMemo: boolean (true: changed, false: not change) // Local: isChangedMemo: boolean (true: changed, false: not change)
isChangedMemo: function (data) { isChangedMemo: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.isChangedMemo, undefined); COMMON.operateData(arguments, COMMON.Keys.isChangedMemo, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.isChangedMemo, undefined); return COMMON.operateData(arguments, COMMON.Keys.isChangedMemo, undefined);
} }
}, },
// Local: isChangedMakingData: boolean (true: changed, false: not change) // Local: isChangedMakingData: boolean (true: changed, false: not change)
isChangedMarkingData: function (data) { isChangedMarkingData: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.isChangedMarkingData, undefined); COMMON.operateData(arguments, COMMON.Keys.isChangedMarkingData, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.isChangedMarkingData, undefined); return COMMON.operateData(arguments, COMMON.Keys.isChangedMarkingData, undefined);
} }
}, },
// Local: isChangedBookmark: boolean (true: changed, false: not change) // Local: isChangedBookmark: boolean (true: changed, false: not change)
isChangedBookmark: function (data) { isChangedBookmark: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.isChangedBookmark, undefined); COMMON.operateData(arguments, COMMON.Keys.isChangedBookmark, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.isChangedBookmark, undefined); return COMMON.operateData(arguments, COMMON.Keys.isChangedBookmark, undefined);
} }
}, },
// Local :共通(common)_コンテンツID:Integer // Local :共通(common)_コンテンツID:Integer
common_preContentId: function (data) { common_preContentId: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.common_preContentId, undefined); COMMON.operateData(arguments, COMMON.Keys.common_preContentId, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.common_preContentId, undefined); return COMMON.operateData(arguments, COMMON.Keys.common_preContentId, undefined);
} }
}, },
// Local :ページ情報データ(common)_ページNo:Integer // Local :ページ情報データ(common)_ページNo:Integer
common_prePageNo: function (data) { common_prePageNo: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.common_prePageNo, undefined); COMMON.operateData(arguments, COMMON.Keys.common_prePageNo, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.common_prePageNo, undefined); return COMMON.operateData(arguments, COMMON.Keys.common_prePageNo, undefined);
} }
}, },
// Local :ペン書式設定(penOpt)_色:String // Local :ペン書式設定(penOpt)_色:String
penOpt_color: function (data) { penOpt_color: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.penOpt_color, undefined); COMMON.operateData(arguments, COMMON.Keys.penOpt_color, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.penOpt_color, undefined); return COMMON.operateData(arguments, COMMON.Keys.penOpt_color, undefined);
} }
}, },
// Local :ペン書式設定(penOpt)_サイズ:Interger // Local :ペン書式設定(penOpt)_サイズ:Interger
penOpt_size: function (data) { penOpt_size: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.penOpt_size, undefined); COMMON.operateData(arguments, COMMON.Keys.penOpt_size, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.penOpt_size, undefined); return COMMON.operateData(arguments, COMMON.Keys.penOpt_size, undefined);
} }
}, },
// Local :マーカ書式設定(maker)_色:String // Local :マーカ書式設定(maker)_色:String
maker_color: function (data) { maker_color: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.maker_color, undefined); COMMON.operateData(arguments, COMMON.Keys.maker_color, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.maker_color, undefined); return COMMON.operateData(arguments, COMMON.Keys.maker_color, undefined);
} }
}, },
// Local :マーカ書式設定(maker)_サイズ:Interger // Local :マーカ書式設定(maker)_サイズ:Interger
maker_size: function (data) { maker_size: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.maker_size, undefined); COMMON.operateData(arguments, COMMON.Keys.maker_size, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.maker_size, undefined); return COMMON.operateData(arguments, COMMON.Keys.maker_size, undefined);
} }
}, },
// Local :消しゴム書式設定(erase)_色:String // Local :消しゴム書式設定(erase)_色:String
erase_color: function (data) { erase_color: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.erase_color, undefined); COMMON.operateData(arguments, COMMON.Keys.erase_color, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.erase_color, undefined); return COMMON.operateData(arguments, COMMON.Keys.erase_color, undefined);
} }
}, },
// Local :消しゴム書式設定(erase)_サイズ:Interger // Local :消しゴム書式設定(erase)_サイズ:Interger
erase_size: function (data) { erase_size: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.erase_size, undefined); COMMON.operateData(arguments, COMMON.Keys.erase_size, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.erase_size, undefined); return COMMON.operateData(arguments, COMMON.Keys.erase_size, undefined);
} }
}, },
// Local :ユーザ情報(userInfo)_最終ログイン日時:Datetime // Local :ユーザ情報(userInfo)_最終ログイン日時:Datetime
userInfo_lastLoginTime: function (data) { userInfo_lastLoginTime: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.userInfo_lastLoginTime, undefined); COMMON.operateData(arguments, COMMON.Keys.userInfo_lastLoginTime, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.userInfo_lastLoginTime, undefined); return COMMON.operateData(arguments, COMMON.Keys.userInfo_lastLoginTime, undefined);
} }
}, },
// Local :ユーザ情報(userInfo)_パスワードスキップ日時:Datetime // Local :ユーザ情報(userInfo)_パスワードスキップ日時:Datetime
userInfo_pwdSkipDt: function (data) { userInfo_pwdSkipDt: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.userInfo_pwdSkipDt, undefined); COMMON.operateData(arguments, COMMON.Keys.userInfo_pwdSkipDt, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.userInfo_pwdSkipDt, undefined); return COMMON.operateData(arguments, COMMON.Keys.userInfo_pwdSkipDt, undefined);
} }
}, },
// Local :ユーザオプション(userOpt)_動画繰り返しフラグ:Interger(0: 繰り返しなし, 1: 繰り返しあり) // Local :ユーザオプション(userOpt)_動画繰り返しフラグ:Interger(0: 繰り返しなし, 1: 繰り返しあり)
userOpt_videoMode: function (data) { userOpt_videoMode: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.userOpt_videoMode, undefined); COMMON.operateData(arguments, COMMON.Keys.userOpt_videoMode, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.userOpt_videoMode, undefined); return COMMON.operateData(arguments, COMMON.Keys.userOpt_videoMode, undefined);
} }
}, },
// Local :ユーザオプション(userOpt)_音楽繰り返しフラグ:Interger(0: 繰り返しなし, 1: 繰り返しあり) // Local :ユーザオプション(userOpt)_音楽繰り返しフラグ:Interger(0: 繰り返しなし, 1: 繰り返しあり)
userOpt_musicMode: function (data) { userOpt_musicMode: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.userOpt_musicMode, undefined); COMMON.operateData(arguments, COMMON.Keys.userOpt_musicMode, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.userOpt_musicMode, undefined); return COMMON.operateData(arguments, COMMON.Keys.userOpt_musicMode, undefined);
} }
}, },
// Local :ユーザオプション(userOpt)_マーキング表示設定:Interger(0:表示しない, 1:表示する) // Local :ユーザオプション(userOpt)_マーキング表示設定:Interger(0:表示しない, 1:表示する)
userOpt_makingDsp: function (data) { userOpt_makingDsp: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.userOpt_makingDsp, undefined); COMMON.operateData(arguments, COMMON.Keys.userOpt_makingDsp, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.userOpt_makingDsp, undefined); return COMMON.operateData(arguments, COMMON.Keys.userOpt_makingDsp, undefined);
} }
}, },
// Local :ユーザオプション(userOpt)_アラート表示設定:Interger(0:表示しない, 1:表示する) // Local :ユーザオプション(userOpt)_アラート表示設定:Interger(0:表示しない, 1:表示する)
userOpt_closeOrRefreshAlert: function (data) { userOpt_closeOrRefreshAlert: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.userOpt_closeOrRefreshAlert, undefined); COMMON.operateData(arguments, COMMON.Keys.userOpt_closeOrRefreshAlert, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.userOpt_closeOrRefreshAlert, undefined); return COMMON.operateData(arguments, COMMON.Keys.userOpt_closeOrRefreshAlert, undefined);
} }
}, },
// Local :ユーザオプション(userOpt)_バックアップ確認フラグ:Interger(0:する, 1:しない) // Local :ユーザオプション(userOpt)_バックアップ確認フラグ:Interger(0:する, 1:しない)
userOpt_bkConfirmFlg: function (data) { userOpt_bkConfirmFlg: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.userOpt_bkConfirmFlg, undefined); COMMON.operateData(arguments, COMMON.Keys.userOpt_bkConfirmFlg, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.userOpt_bkConfirmFlg, undefined); return COMMON.operateData(arguments, COMMON.Keys.userOpt_bkConfirmFlg, undefined);
} }
}, },
// Local :並び順(sortOpt)_表示モード:Interger(0:本棚, 1:リスト) // Local :並び順(sortOpt)_表示モード:Interger(0:本棚, 1:リスト)
sortOpt_viewMode: function (data) { sortOpt_viewMode: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.sortOpt_viewMode, undefined); COMMON.operateData(arguments, COMMON.Keys.sortOpt_viewMode, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.sortOpt_viewMode, undefined); return COMMON.operateData(arguments, COMMON.Keys.sortOpt_viewMode, undefined);
} }
}, },
// Local :並び順(sortOpt)_表示区分:Interger(0:ジャンル, 1:グループ) // Local :並び順(sortOpt)_表示区分:Interger(0:ジャンル, 1:グループ)
sortOpt_viewType: function (data) { sortOpt_viewType: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.sortOpt_viewType, undefined); COMMON.operateData(arguments, COMMON.Keys.sortOpt_viewType, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.sortOpt_viewType, undefined); return COMMON.operateData(arguments, COMMON.Keys.sortOpt_viewType, undefined);
} }
}, },
// Local :並び順(sortOpt)_ソート基準:Interger(1:コンテンツ検索, 2:タグ検索, 3:全文検索) // Local :並び順(sortOpt)_ソート基準:Interger(1:コンテンツ検索, 2:タグ検索, 3:全文検索)
sortOpt_searchDivision: function (data) { sortOpt_searchDivision: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.sortOpt_searchDivision, undefined); COMMON.operateData(arguments, COMMON.Keys.sortOpt_searchDivision, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.sortOpt_searchDivision, undefined); return COMMON.operateData(arguments, COMMON.Keys.sortOpt_searchDivision, undefined);
} }
}, },
// Local: 並び順(sortOpt)_ソート方法:Interger(1:タイトル名, 2:タイトル名(かな), 3:公開順) // Local: 並び順(sortOpt)_ソート方法:Interger(1:タイトル名, 2:タイトル名(かな), 3:公開順)
sortOpt_sortType: function (data) { sortOpt_sortType: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.sortOpt_sortType, undefined); COMMON.operateData(arguments, COMMON.Keys.sortOpt_sortType, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.sortOpt_sortType, undefined); return COMMON.operateData(arguments, COMMON.Keys.sortOpt_sortType, undefined);
} }
}, },
// Local :しおりデータ(bookmark)_ページNo:Interger // Local :しおりデータ(bookmark)_ページNo:Interger
bookmark_pageNo: function (data) { bookmark_pageNo: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.bookmark_pageNo, undefined); COMMON.operateData(arguments, COMMON.Keys.bookmark_pageNo, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.bookmark_pageNo, undefined); return COMMON.operateData(arguments, COMMON.Keys.bookmark_pageNo, undefined);
} }
}, },
// Local :メモデータ(memo)_コンテンツID:Interger // Local :メモデータ(memo)_コンテンツID:Interger
memo_contentNo: function (data) { memo_contentNo: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.memo_contentNo, undefined); COMMON.operateData(arguments, COMMON.Keys.memo_contentNo, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.memo_contentNo, undefined); return COMMON.operateData(arguments, COMMON.Keys.memo_contentNo, undefined);
} }
}, },
// Local :メモデータ(memo)_ページNo:Interger // Local :メモデータ(memo)_ページNo:Interger
memo_pageNo: function (data) { memo_pageNo: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.memo_pageNo, undefined); COMMON.operateData(arguments, COMMON.Keys.memo_pageNo, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.memo_pageNo, undefined); return COMMON.operateData(arguments, COMMON.Keys.memo_pageNo, undefined);
} }
}, },
// Local :ユーザオプション(userOpt)_バックアップデフォルト_マーキング:Interger // Local :ユーザオプション(userOpt)_バックアップデフォルト_マーキング:Interger
userOpt_bkMakingFlag: function (data) { userOpt_bkMakingFlag: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.userOpt_bkMakingFlag, undefined); COMMON.operateData(arguments, COMMON.Keys.userOpt_bkMakingFlag, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.userOpt_bkMakingFlag, undefined); return COMMON.operateData(arguments, COMMON.Keys.userOpt_bkMakingFlag, undefined);
} }
}, },
// Local :ユーザオプション(userOpt)_バックアップデフォルト_メモ:Interger // Local :ユーザオプション(userOpt)_バックアップデフォルト_メモ:Interger
userOpt_bkMemoFlag: function (data) { userOpt_bkMemoFlag: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.userOpt_bkMemoFlag, undefined); COMMON.operateData(arguments, COMMON.Keys.userOpt_bkMemoFlag, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.userOpt_bkMemoFlag, undefined); return COMMON.operateData(arguments, COMMON.Keys.userOpt_bkMemoFlag, undefined);
} }
}, },
// Local :ユーザオプション(userOpt)_バックアップデフォルト_しおり:Interger // Local :ユーザオプション(userOpt)_バックアップデフォルト_しおり:Interger
userOpt_bkShioriFlag: function (data) { userOpt_bkShioriFlag: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.userOpt_bkShioriFlag, undefined); COMMON.operateData(arguments, COMMON.Keys.userOpt_bkShioriFlag, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.userOpt_bkShioriFlag, undefined); return COMMON.operateData(arguments, COMMON.Keys.userOpt_bkShioriFlag, undefined);
} }
}, },
// Local :ユーザオプション(userOpt)_ビューのアニメーション種類:Interger // Local :ユーザオプション(userOpt)_ビューのアニメーション種類:Interger
userOpt_pageTransition: function (data) { userOpt_pageTransition: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.userOpt_pageTransition, undefined); COMMON.operateData(arguments, COMMON.Keys.userOpt_pageTransition, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.userOpt_pageTransition, undefined); return COMMON.operateData(arguments, COMMON.Keys.userOpt_pageTransition, undefined);
} }
}, },
// Local :ユーザオプション(userOpt)_アニメーション時間:Float // Local :ユーザオプション(userOpt)_アニメーション時間:Float
userOpt_pageTransitionPeriod: function (data) { userOpt_pageTransitionPeriod: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
COMMON.operateData(arguments, Keys.userOpt_pageTransitionPeriod, undefined); COMMON.operateData(arguments, COMMON.Keys.userOpt_pageTransitionPeriod, undefined);
} }
else { else {
return COMMON.operateData(arguments, Keys.userOpt_pageTransitionPeriod, undefined); return COMMON.operateData(arguments, COMMON.Keys.userOpt_pageTransitionPeriod, undefined);
} }
}, },
// Session // Session
memo_copyText: function (data) { memo_copyText: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.memo_copyText, JSON.stringify(data)); SessionStorageUtils.set(COMMON.Keys.memo_copyText, JSON.stringify(data));
} else { } else {
if (SessionStorageUtils.get(Keys.memo_copyText) != 'undefined' if (SessionStorageUtils.get(COMMON.Keys.memo_copyText) != 'undefined'
&& SessionStorageUtils.get(Keys.memo_copyText) != undefined && SessionStorageUtils.get(COMMON.Keys.memo_copyText) != undefined
&& SessionStorageUtils.get(Keys.memo_copyText) != '' && SessionStorageUtils.get(COMMON.Keys.memo_copyText) != ''
&& SessionStorageUtils.get(Keys.memo_copyText) != null && SessionStorageUtils.get(COMMON.Keys.memo_copyText) != null
&& SessionStorageUtils.get(Keys.memo_copyText) != 'null') { && SessionStorageUtils.get(COMMON.Keys.memo_copyText) != 'null') {
return JSON.parse(SessionStorageUtils.get(Keys.memo_copyText)); return JSON.parse(SessionStorageUtils.get(COMMON.Keys.memo_copyText));
} }
return null; return null;
} }
...@@ -1090,14 +1090,14 @@ var ClientData = { ...@@ -1090,14 +1090,14 @@ var ClientData = {
// Session // Session
IsRefresh: function (data) { IsRefresh: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.IsRefresh, JSON.stringify(data)); SessionStorageUtils.set(COMMON.Keys.IsRefresh, JSON.stringify(data));
} else { } else {
if (SessionStorageUtils.get(Keys.IsRefresh) != 'undefined' if (SessionStorageUtils.get(COMMON.Keys.IsRefresh) != 'undefined'
&& SessionStorageUtils.get(Keys.IsRefresh) != undefined && SessionStorageUtils.get(COMMON.Keys.IsRefresh) != undefined
&& SessionStorageUtils.get(Keys.IsRefresh) != '' && SessionStorageUtils.get(COMMON.Keys.IsRefresh) != ''
&& SessionStorageUtils.get(Keys.IsRefresh) != null && SessionStorageUtils.get(COMMON.Keys.IsRefresh) != null
&& SessionStorageUtils.get(Keys.IsRefresh) != 'null') { && SessionStorageUtils.get(COMMON.Keys.IsRefresh) != 'null') {
return JSON.parse(SessionStorageUtils.get(Keys.IsRefresh)); return JSON.parse(SessionStorageUtils.get(COMMON.Keys.IsRefresh));
} }
return false; return false;
} }
...@@ -1105,39 +1105,39 @@ var ClientData = { ...@@ -1105,39 +1105,39 @@ var ClientData = {
// Session // Session
userInfo_userName: function (data) { userInfo_userName: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.userInfo_userName, data); SessionStorageUtils.set(COMMON.Keys.userInfo_userName, data);
} else { } else {
return SessionStorageUtils.get(Keys.userInfo_userName); return SessionStorageUtils.get(COMMON.Keys.userInfo_userName);
} }
}, },
// Session :コンテンツ詳細情報(contentInfo)_サムネール: String (base64string) // Session :コンテンツ詳細情報(contentInfo)_サムネール: String (base64string)
contentInfo_contentThumbnail: function (data) { contentInfo_contentThumbnail: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.contentInfo_contentThumbnail, data); SessionStorageUtils.set(COMMON.Keys.contentInfo_contentThumbnail, data);
} else { } else {
return SessionStorageUtils.get(Keys.contentInfo_contentThumbnail); return SessionStorageUtils.get(COMMON.Keys.contentInfo_contentThumbnail);
} }
}, },
// Session:パスワード要変更(requirePasswordChange):String (0:不要, 1:初回, 2:定期変更) // Session:パスワード要変更(requirePasswordChange):String (0:不要, 1:初回, 2:定期変更)
requirePasswordChange: function (data) { requirePasswordChange: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.requirePasswordChange, data); SessionStorageUtils.set(COMMON.Keys.requirePasswordChange, data);
} else { } else {
return SessionStorageUtils.get(Keys.requirePasswordChange); return SessionStorageUtils.get(COMMON.Keys.requirePasswordChange);
} }
}, },
// Session:ユーザ情報(userInfo)_セッションID:String // Session:ユーザ情報(userInfo)_セッションID:String
userInfo_sid: function (data) { userInfo_sid: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.userInfo_sid, data); SessionStorageUtils.set(COMMON.Keys.userInfo_sid, data);
avwUserSetting().set(Keys.userInfo_sid, data); avwUserSetting().set(COMMON.Keys.userInfo_sid, data);
} else { } else {
//return avwUserSetting().get(Keys.userInfo_sid); //return avwUserSetting().get(COMMON.Keys.userInfo_sid);
if (avwUserSession()) { if (avwUserSession()) {
return SessionStorageUtils.get(Keys.userInfo_sid); return SessionStorageUtils.get(COMMON.Keys.userInfo_sid);
} }
return null; return null;
} }
...@@ -1146,464 +1146,464 @@ var ClientData = { ...@@ -1146,464 +1146,464 @@ var ClientData = {
// Session :事業者オプション(serviceOpt)_初回ログイン時パスワード強制変更:Integer(0:なし, 1:催促, 2:強制) // Session :事業者オプション(serviceOpt)_初回ログイン時パスワード強制変更:Integer(0:なし, 1:催促, 2:強制)
serviceOpt_force_pw_change_on_login: function (data) { serviceOpt_force_pw_change_on_login: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_force_pw_change_on_login, data); SessionStorageUtils.set(COMMON.Keys.serviceOpt_force_pw_change_on_login, data);
} else { } else {
return SessionStorageUtils.get(Keys.serviceOpt_force_pw_change_on_login); return SessionStorageUtils.get(COMMON.Keys.serviceOpt_force_pw_change_on_login);
} }
}, },
// Session :事業者オプション(serviceOpt)_定期ログイン時パスワード強制変更:Integer(0:なし, 1:催促, 2:強制) // Session :事業者オプション(serviceOpt)_定期ログイン時パスワード強制変更:Integer(0:なし, 1:催促, 2:強制)
serviceOpt_force_pw_change_periodically: function (data) { serviceOpt_force_pw_change_periodically: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_force_pw_change_periodically, data); SessionStorageUtils.set(COMMON.Keys.serviceOpt_force_pw_change_periodically, data);
} else { } else {
return SessionStorageUtils.get(Keys.serviceOpt_force_pw_change_periodically); return SessionStorageUtils.get(COMMON.Keys.serviceOpt_force_pw_change_periodically);
} }
}, },
// Session:事業者オプション(serviceOpt)_メモ・マーキングデータバックアップ使用:Char(Y:可能, N:不可) // Session:事業者オプション(serviceOpt)_メモ・マーキングデータバックアップ使用:Char(Y:可能, N:不可)
serviceOpt_user_data_backup: function (data) { serviceOpt_user_data_backup: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_user_data_backup, data); SessionStorageUtils.set(COMMON.Keys.serviceOpt_user_data_backup, data);
} else { } else {
return SessionStorageUtils.get(Keys.serviceOpt_user_data_backup); return SessionStorageUtils.get(COMMON.Keys.serviceOpt_user_data_backup);
} }
}, },
// Session :事業者オプション(serviceOpt)_マーキング機能使用:Char(Y:可能, N:不可) // Session :事業者オプション(serviceOpt)_マーキング機能使用:Char(Y:可能, N:不可)
serviceOpt_marking: function (data) { serviceOpt_marking: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_marking, data); SessionStorageUtils.set(COMMON.Keys.serviceOpt_marking, data);
} else { } else {
return SessionStorageUtils.get(Keys.serviceOpt_marking); return SessionStorageUtils.get(COMMON.Keys.serviceOpt_marking);
} }
}, },
// No.8: do not use this value: serviceOpt_force_login_periodically // No.8: do not use this value: serviceOpt_force_login_periodically
// Session :事業者オプション(serviceOpt)_一定期間経過後アプリロック:Char(Y:可能, N:不可) // Session :事業者オプション(serviceOpt)_一定期間経過後アプリロック:Char(Y:可能, N:不可)
//serviceOpt_force_login_periodically: function (data) { //serviceOpt_force_login_periodically: function (data) {
// if (arguments.length > 0) { // if (arguments.length > 0) {
// SessionStorageUtils.set(Keys.serviceOpt_force_login_periodically, data); // SessionStorageUtils.set(COMMON.Keys.serviceOpt_force_login_periodically, data);
// } else { // } else {
// return SessionStorageUtils.get(Keys.serviceOpt_force_login_periodically); // return SessionStorageUtils.get(COMMON.Keys.serviceOpt_force_login_periodically);
// } // }
//}, //},
// Session :事業者オプション(serviceOpt)_GPS使用可:Char(Y:可能, N:不可) // Session :事業者オプション(serviceOpt)_GPS使用可:Char(Y:可能, N:不可)
serviceOpt_usable_readinglog_gps: function (data) { serviceOpt_usable_readinglog_gps: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_usable_readinglog_gps, data); SessionStorageUtils.set(COMMON.Keys.serviceOpt_usable_readinglog_gps, data);
} else { } else {
return SessionStorageUtils.get(Keys.serviceOpt_usable_readinglog_gps); return SessionStorageUtils.get(COMMON.Keys.serviceOpt_usable_readinglog_gps);
} }
}, },
// Session :事業者オプション(serviceOpt)_詳細ログ使用可:Char(Y:可能, N:不可) // Session :事業者オプション(serviceOpt)_詳細ログ使用可:Char(Y:可能, N:不可)
serviceOpt_usable_readinglog_object: function (data) { serviceOpt_usable_readinglog_object: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_usable_readinglog_object, data); SessionStorageUtils.set(COMMON.Keys.serviceOpt_usable_readinglog_object, data);
} else { } else {
return SessionStorageUtils.get(Keys.serviceOpt_usable_readinglog_object); return SessionStorageUtils.get(COMMON.Keys.serviceOpt_usable_readinglog_object);
} }
}, },
// Session :事業者オプション(serviceOpt)_getits_GPS使用可:Char(Y:可能, N:不可) // Session :事業者オプション(serviceOpt)_getits_GPS使用可:Char(Y:可能, N:不可)
serviceOpt_reader_usable_readinglog_gps: function (data) { serviceOpt_reader_usable_readinglog_gps: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_reader_usable_readinglog_gps, data); SessionStorageUtils.set(COMMON.Keys.serviceOpt_reader_usable_readinglog_gps, data);
} else { } else {
return SessionStorageUtils.get(Keys.serviceOpt_reader_usable_readinglog_gps); return SessionStorageUtils.get(COMMON.Keys.serviceOpt_reader_usable_readinglog_gps);
} }
}, },
// Session :事業者オプション(serviceOpt)_getits_詳細ログ使用可:Char(Y:可能, N:不可) // Session :事業者オプション(serviceOpt)_getits_詳細ログ使用可:Char(Y:可能, N:不可)
serviceOpt_reader_readinglog_object: function (data) { serviceOpt_reader_readinglog_object: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_reader_readinglog_object, data); SessionStorageUtils.set(COMMON.Keys.serviceOpt_reader_readinglog_object, data);
} else { } else {
return SessionStorageUtils.get(Keys.serviceOpt_reader_readinglog_object); return SessionStorageUtils.get(COMMON.Keys.serviceOpt_reader_readinglog_object);
} }
}, },
// Session :事業者オプション(serviceOpt)_カタログエディション:Char(Y:可能, N:不可) // Session :事業者オプション(serviceOpt)_カタログエディション:Char(Y:可能, N:不可)
serviceOpt_catalog_edition: function (data) { serviceOpt_catalog_edition: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_catalog_edition, data); SessionStorageUtils.set(COMMON.Keys.serviceOpt_catalog_edition, data);
} else { } else {
return SessionStorageUtils.get(Keys.serviceOpt_catalog_edition); return SessionStorageUtils.get(COMMON.Keys.serviceOpt_catalog_edition);
} }
}, },
// Session :事業者オプション(serviceOpt)_日比谷対応:Char(Y:可能, N:不可) // Session :事業者オプション(serviceOpt)_日比谷対応:Char(Y:可能, N:不可)
serviceOpt_hibiyakadan_catalog: function (data) { serviceOpt_hibiyakadan_catalog: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_hibiyakadan_catalog, data); SessionStorageUtils.set(COMMON.Keys.serviceOpt_hibiyakadan_catalog, data);
} else { } else {
return SessionStorageUtils.get(Keys.serviceOpt_hibiyakadan_catalog); return SessionStorageUtils.get(COMMON.Keys.serviceOpt_hibiyakadan_catalog);
} }
}, },
// Session :事業者オプション(serviceOpt)_DH対応:Char(Y:可能, N:不可) // Session :事業者オプション(serviceOpt)_DH対応:Char(Y:可能, N:不可)
serviceOpt_daihatsu: function (data) { serviceOpt_daihatsu: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_daihatsu, data); SessionStorageUtils.set(COMMON.Keys.serviceOpt_daihatsu, data);
} else { } else {
return SessionStorageUtils.get(Keys.serviceOpt_daihatsu); return SessionStorageUtils.get(COMMON.Keys.serviceOpt_daihatsu);
} }
}, },
// Session :共通(common)_コンテンツID:Integer // Session :共通(common)_コンテンツID:Integer
common_contentId: function (data) { common_contentId: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.common_contentId, data); SessionStorageUtils.set(COMMON.Keys.common_contentId, data);
} else { } else {
return SessionStorageUtils.get(Keys.common_contentId); return SessionStorageUtils.get(COMMON.Keys.common_contentId);
} }
}, },
// Session: 共通(common)_コンテンツデータチェックフラグ: Integer(true/false, true:メモ、マーキング、しおりを削除する処理を行える false:メモ、マーキング、しおりを削除する処理をしない) // Session: 共通(common)_コンテンツデータチェックフラグ: Integer(true/false, true:メモ、マーキング、しおりを削除する処理を行える false:メモ、マーキング、しおりを削除する処理をしない)
common_contentDataChkFlg: function (data) { common_contentDataChkFlg: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.common_contentDataChkFlg, data); SessionStorageUtils.set(COMMON.Keys.common_contentDataChkFlg, data);
} else { } else {
return SessionStorageUtils.get(Keys.common_contentDataChkFlg); return SessionStorageUtils.get(COMMON.Keys.common_contentDataChkFlg);
} }
}, },
// Session :ページ情報データ(pageInfo)_ページNo:Integer // Session :ページ情報データ(pageInfo)_ページNo:Integer
pageInfo_pageNo: function (data) { pageInfo_pageNo: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.pageInfo_pageNo, data); SessionStorageUtils.set(COMMON.Keys.pageInfo_pageNo, data);
} else { } else {
return SessionStorageUtils.get(Keys.pageInfo_pageNo); return SessionStorageUtils.get(COMMON.Keys.pageInfo_pageNo);
} }
}, },
// Session :ページ情報データ(pageInfo)_ページテキスト:String // Session :ページ情報データ(pageInfo)_ページテキスト:String
pageInfo_pageText: function (data) { pageInfo_pageText: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.pageInfo_pageText, data); SessionStorageUtils.set(COMMON.Keys.pageInfo_pageText, data);
} else { } else {
return SessionStorageUtils.get(Keys.pageInfo_pageText); return SessionStorageUtils.get(COMMON.Keys.pageInfo_pageText);
} }
}, },
// Session :ページ情報データ(pageInfo)_コンテンツサムネイル:Integer // Session :ページ情報データ(pageInfo)_コンテンツサムネイル:Integer
pageInfo_pageImgResrcId: function (data) { pageInfo_pageImgResrcId: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.pageInfo_pageImgResrcId, data); SessionStorageUtils.set(COMMON.Keys.pageInfo_pageImgResrcId, data);
} else { } else {
return SessionStorageUtils.get(Keys.pageInfo_pageImgResrcId); return SessionStorageUtils.get(COMMON.Keys.pageInfo_pageImgResrcId);
} }
}, },
// Session :コンテンツ内リンク(linkInfo)_リンク位置のx座標:Integer // Session :コンテンツ内リンク(linkInfo)_リンク位置のx座標:Integer
linkInfo_linkLocationX: function (data) { linkInfo_linkLocationX: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.linkInfo_linkLocationX, data); SessionStorageUtils.set(COMMON.Keys.linkInfo_linkLocationX, data);
} else { } else {
return SessionStorageUtils.get(Keys.linkInfo_linkLocationX); return SessionStorageUtils.get(COMMON.Keys.linkInfo_linkLocationX);
} }
}, },
// Session :コンテンツ内リンク(linkInfo)_リンク位置のy座標:Integer // Session :コンテンツ内リンク(linkInfo)_リンク位置のy座標:Integer
linkInfo_linkLocationY: function (data) { linkInfo_linkLocationY: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.linkInfo_linkLocationY, data); SessionStorageUtils.set(COMMON.Keys.linkInfo_linkLocationY, data);
} else { } else {
return SessionStorageUtils.get(Keys.linkInfo_linkLocationY); return SessionStorageUtils.get(COMMON.Keys.linkInfo_linkLocationY);
} }
}, },
// Session :コンテンツ内リンク(linkInfo)_リンク領域の幅:Integer // Session :コンテンツ内リンク(linkInfo)_リンク領域の幅:Integer
linkInfo_linkLocationWidth: function (data) { linkInfo_linkLocationWidth: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.linkInfo_linkLocationWidth, data); SessionStorageUtils.set(COMMON.Keys.linkInfo_linkLocationWidth, data);
} else { } else {
return SessionStorageUtils.get(Keys.linkInfo_linkLocationWidth); return SessionStorageUtils.get(COMMON.Keys.linkInfo_linkLocationWidth);
} }
}, },
// Session :コンテンツ内リンク(linkInfo)_リンク領域の高さ:Integer // Session :コンテンツ内リンク(linkInfo)_リンク領域の高さ:Integer
linkInfo_linkLocationHeight: function (data) { linkInfo_linkLocationHeight: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.linkInfo_linkLocationHeight, data); SessionStorageUtils.set(COMMON.Keys.linkInfo_linkLocationHeight, data);
} else { } else {
return SessionStorageUtils.get(Keys.linkInfo_linkLocationHeight); return SessionStorageUtils.get(COMMON.Keys.linkInfo_linkLocationHeight);
} }
}, },
// Session :コンテンツ内リンク(linkInfo)_リンクタイプ:Integer(0/1) // Session :コンテンツ内リンク(linkInfo)_リンクタイプ:Integer(0/1)
linkInfo_linkKind: function (data) { linkInfo_linkKind: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.linkInfo_linkKind, data); SessionStorageUtils.set(COMMON.Keys.linkInfo_linkKind, data);
} else { } else {
return SessionStorageUtils.get(Keys.linkInfo_linkKind); return SessionStorageUtils.get(COMMON.Keys.linkInfo_linkKind);
} }
}, },
// Session :コンテンツ内リンク(linkInfo)_ターゲットURI:String(0/1) // Session :コンテンツ内リンク(linkInfo)_ターゲットURI:String(0/1)
linkInfo_destURI: function (data) { linkInfo_destURI: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.linkInfo_destURI, data); SessionStorageUtils.set(COMMON.Keys.linkInfo_destURI, data);
} else { } else {
return SessionStorageUtils.get(Keys.linkInfo_destURI); return SessionStorageUtils.get(COMMON.Keys.linkInfo_destURI);
} }
}, },
// Session :コンテンツ内リンク(linkInfo)_ターゲットページNo:Integer(0/1) // Session :コンテンツ内リンク(linkInfo)_ターゲットページNo:Integer(0/1)
linkInfo_destPageNumber: function (data) { linkInfo_destPageNumber: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.linkInfo_destPageNumber, data); SessionStorageUtils.set(COMMON.Keys.linkInfo_destPageNumber, data);
} else { } else {
return SessionStorageUtils.get(Keys.linkInfo_destPageNumber); return SessionStorageUtils.get(COMMON.Keys.linkInfo_destPageNumber);
} }
}, },
// Session :閲覧ログ(log)_コンテンツ閲覧開始時刻:Datetime // Session :閲覧ログ(log)_コンテンツ閲覧開始時刻:Datetime
log_contentStartViewDt: function (data) { log_contentStartViewDt: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.log_contentStartViewDt, data); SessionStorageUtils.set(COMMON.Keys.log_contentStartViewDt, data);
} else { } else {
return SessionStorageUtils.get(Keys.log_contentStartViewDt); return SessionStorageUtils.get(COMMON.Keys.log_contentStartViewDt);
} }
}, },
// Session :コンテンツ詳細情報(contentInfo)_コンテンツID:Integer // Session :コンテンツ詳細情報(contentInfo)_コンテンツID:Integer
contentInfo_contentId: function (data) { contentInfo_contentId: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.contentInfo_contentId, data); SessionStorageUtils.set(COMMON.Keys.contentInfo_contentId, data);
} else { } else {
return SessionStorageUtils.get(Keys.contentInfo_contentId); return SessionStorageUtils.get(COMMON.Keys.contentInfo_contentId);
} }
}, },
// Session :コンテンツ詳細情報(contentInfo)_カテゴリID:Integer // Session :コンテンツ詳細情報(contentInfo)_カテゴリID:Integer
contentInfo_categoryId: function (data) { contentInfo_categoryId: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.contentInfo_categoryId, data); SessionStorageUtils.set(COMMON.Keys.contentInfo_categoryId, data);
} else { } else {
return SessionStorageUtils.get(Keys.contentInfo_categoryId); return SessionStorageUtils.get(COMMON.Keys.contentInfo_categoryId);
} }
}, },
// Session :コンテンツ詳細情報(contentInfo)_コンテンツ名:String // Session :コンテンツ詳細情報(contentInfo)_コンテンツ名:String
contentInfo_contentName: function (data) { contentInfo_contentName: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.contentInfo_contentName, data); SessionStorageUtils.set(COMMON.Keys.contentInfo_contentName, data);
} else { } else {
return SessionStorageUtils.get(Keys.contentInfo_contentName); return SessionStorageUtils.get(COMMON.Keys.contentInfo_contentName);
} }
}, },
// Session :コンテンツ詳細情報(contentInfo)_コンテンツ名(カナ):String // Session :コンテンツ詳細情報(contentInfo)_コンテンツ名(カナ):String
contentInfo_contentNameKana: function (data) { contentInfo_contentNameKana: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.contentInfo_contentNameKana, data); SessionStorageUtils.set(COMMON.Keys.contentInfo_contentNameKana, data);
} else { } else {
return SessionStorageUtils.get(Keys.contentInfo_contentNameKana); return SessionStorageUtils.get(COMMON.Keys.contentInfo_contentNameKana);
} }
}, },
// Session :コンテンツ詳細情報(contentInfo)_コンテンツ詳細:String // Session :コンテンツ詳細情報(contentInfo)_コンテンツ詳細:String
contentInfo_contentDetail: function (data) { contentInfo_contentDetail: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.contentInfo_contentDetail, data); SessionStorageUtils.set(COMMON.Keys.contentInfo_contentDetail, data);
} else { } else {
return SessionStorageUtils.get(Keys.contentInfo_contentDetail); return SessionStorageUtils.get(COMMON.Keys.contentInfo_contentDetail);
} }
}, },
// Session :コンテンツ詳細情報(contentInfo)_公開開始日:Datetime // Session :コンテンツ詳細情報(contentInfo)_公開開始日:Datetime
contentInfo_deliveryStartDate: function (data) { contentInfo_deliveryStartDate: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.contentInfo_deliveryStartDate, data); SessionStorageUtils.set(COMMON.Keys.contentInfo_deliveryStartDate, data);
} else { } else {
return SessionStorageUtils.get(Keys.contentInfo_deliveryStartDate); return SessionStorageUtils.get(COMMON.Keys.contentInfo_deliveryStartDate);
} }
}, },
// Session :コンテンツ詳細情報(contentInfo)_公開終了日:Datetime // Session :コンテンツ詳細情報(contentInfo)_公開終了日:Datetime
contentInfo_deliveryEndDate: function (data) { contentInfo_deliveryEndDate: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.contentInfo_deliveryEndDate, data); SessionStorageUtils.set(COMMON.Keys.contentInfo_deliveryEndDate, data);
} else { } else {
return SessionStorageUtils.get(Keys.contentInfo_deliveryEndDate); return SessionStorageUtils.get(COMMON.Keys.contentInfo_deliveryEndDate);
} }
}, },
// Session :コンテンツ詳細情報(contentInfo)_本棚サムネール名:Interger // Session :コンテンツ詳細情報(contentInfo)_本棚サムネール名:Interger
contentInfo_thumbnailName: function (data) { contentInfo_thumbnailName: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.contentInfo_thumbnailName, data); SessionStorageUtils.set(COMMON.Keys.contentInfo_thumbnailName, data);
} else { } else {
return SessionStorageUtils.get(Keys.contentInfo_thumbnailName); return SessionStorageUtils.get(COMMON.Keys.contentInfo_thumbnailName);
} }
}, },
// Session :コンテンツ詳細情報(contentInfo)_詳細画面サムネール名:Interger // Session :コンテンツ詳細情報(contentInfo)_詳細画面サムネール名:Interger
contentInfo_thumbnailBigName: function (data) { contentInfo_thumbnailBigName: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.contentInfo_thumbnailBigName, data); SessionStorageUtils.set(COMMON.Keys.contentInfo_thumbnailBigName, data);
} else { } else {
return SessionStorageUtils.get(Keys.contentInfo_thumbnailBigName); return SessionStorageUtils.get(COMMON.Keys.contentInfo_thumbnailBigName);
} }
}, },
// Session :コンテンツ詳細情報(contentInfo)_メタ更新バージョン:Interger // Session :コンテンツ詳細情報(contentInfo)_メタ更新バージョン:Interger
contentInfo_metaVersion: function (data) { contentInfo_metaVersion: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.contentInfo_metaVersion, data); SessionStorageUtils.set(COMMON.Keys.contentInfo_metaVersion, data);
} else { } else {
return SessionStorageUtils.get(Keys.contentInfo_metaVersion); return SessionStorageUtils.get(COMMON.Keys.contentInfo_metaVersion);
} }
}, },
// Session :コンテンツ詳細情報(contentInfo)_リソース更新バージョン:Interger // Session :コンテンツ詳細情報(contentInfo)_リソース更新バージョン:Interger
contentInfo_resourceVersion: function (data) { contentInfo_resourceVersion: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.contentInfo_resourceVersion, data); SessionStorageUtils.set(COMMON.Keys.contentInfo_resourceVersion, data);
} else { } else {
return SessionStorageUtils.get(Keys.contentInfo_resourceVersion); return SessionStorageUtils.get(COMMON.Keys.contentInfo_resourceVersion);
} }
}, },
// Session :コンテンツ詳細情報(contentInfo)_PDF総ページ数:Interger // Session :コンテンツ詳細情報(contentInfo)_PDF総ページ数:Interger
contentInfo_allPageNum: function (data) { contentInfo_allPageNum: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.contentInfo_allPageNum, data); SessionStorageUtils.set(COMMON.Keys.contentInfo_allPageNum, data);
} else { } else {
return SessionStorageUtils.get(Keys.contentInfo_allPageNum); return SessionStorageUtils.get(COMMON.Keys.contentInfo_allPageNum);
} }
}, },
// Session :(contentType):String // Session :(contentType):String
contentInfo_contentType: function (data) { contentInfo_contentType: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.contentInfo_contentType, data); SessionStorageUtils.set(COMMON.Keys.contentInfo_contentType, data);
} else { } else {
return SessionStorageUtils.get(Keys.contentInfo_contentType); return SessionStorageUtils.get(COMMON.Keys.contentInfo_contentType);
} }
}, },
// Session :検索条件(searchCond)_検索テキスト:String // Session :検索条件(searchCond)_検索テキスト:String
searchCond_searchText: function (data) { searchCond_searchText: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.searchCond_searchText, data); SessionStorageUtils.set(COMMON.Keys.searchCond_searchText, data);
} else { } else {
return SessionStorageUtils.get(Keys.searchCond_searchText); return SessionStorageUtils.get(COMMON.Keys.searchCond_searchText);
} }
}, },
// Session :検索条件(searchCond)_検索区分:Interger(1:コンテンツ検索, 2:タグ検索, 3:全文検索) // Session :検索条件(searchCond)_検索区分:Interger(1:コンテンツ検索, 2:タグ検索, 3:全文検索)
searchCond_searchDivision: function (data) { searchCond_searchDivision: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.searchCond_searchDivision, data); SessionStorageUtils.set(COMMON.Keys.searchCond_searchDivision, data);
} else { } else {
return SessionStorageUtils.get(Keys.searchCond_searchDivision); return SessionStorageUtils.get(COMMON.Keys.searchCond_searchDivision);
} }
}, },
// Session :検索条件(searchCond)_ソート基準:Interger(1:タイトル名, 2:タイトル名(かな), 3:公開順) // Session :検索条件(searchCond)_ソート基準:Interger(1:タイトル名, 2:タイトル名(かな), 3:公開順)
searchCond_sortType: function (data) { searchCond_sortType: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.searchCond_sortType, data); SessionStorageUtils.set(COMMON.Keys.searchCond_sortType, data);
} else { } else {
return SessionStorageUtils.get(Keys.searchCond_sortType); return SessionStorageUtils.get(COMMON.Keys.searchCond_sortType);
} }
}, },
// Session :検索条件(searchCond)_ソート方法:Interger(1:昇順, 2:降順) // Session :検索条件(searchCond)_ソート方法:Interger(1:昇順, 2:降順)
searchCond_sortOrder: function (data) { searchCond_sortOrder: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.searchCond_sortOrder, data); SessionStorageUtils.set(COMMON.Keys.searchCond_sortOrder, data);
} else { } else {
return SessionStorageUtils.get(Keys.searchCond_sortOrder); return SessionStorageUtils.get(COMMON.Keys.searchCond_sortOrder);
} }
}, },
// Session :検索条件(searchCond)_レコードFrom:Interger // Session :検索条件(searchCond)_レコードFrom:Interger
searchCond_recordFrom: function (data) { searchCond_recordFrom: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.searchCond_recordFrom, data); SessionStorageUtils.set(COMMON.Keys.searchCond_recordFrom, data);
} else { } else {
return SessionStorageUtils.get(Keys.searchCond_recordFrom); return SessionStorageUtils.get(COMMON.Keys.searchCond_recordFrom);
} }
}, },
// Session :検索条件(searchCond)_レコードTo:Interger // Session :検索条件(searchCond)_レコードTo:Interger
searchCond_recordTo: function (data) { searchCond_recordTo: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.searchCond_recordTo, data); SessionStorageUtils.set(COMMON.Keys.searchCond_recordTo, data);
} else { } else {
return SessionStorageUtils.get(Keys.searchCond_recordTo); return SessionStorageUtils.get(COMMON.Keys.searchCond_recordTo);
} }
}, },
// Session :検索条件(searchCond)_カテゴリID:Interger // Session :検索条件(searchCond)_カテゴリID:Interger
searchCond_genreId: function (data) { searchCond_genreId: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.searchCond_genreId, data); SessionStorageUtils.set(COMMON.Keys.searchCond_genreId, data);
} else { } else {
return SessionStorageUtils.get(Keys.searchCond_genreId); return SessionStorageUtils.get(COMMON.Keys.searchCond_genreId);
} }
}, },
// Session :検索条件(searchCond)_グループID:Interger // Session :検索条件(searchCond)_グループID:Interger
searchCond_groupId: function (data) { searchCond_groupId: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.searchCond_groupId, data); SessionStorageUtils.set(COMMON.Keys.searchCond_groupId, data);
} else { } else {
return SessionStorageUtils.get(Keys.searchCond_groupId); return SessionStorageUtils.get(COMMON.Keys.searchCond_groupId);
} }
}, },
// Session :通知情報(pushInfo)_新着件数:Interger // Session :通知情報(pushInfo)_新着件数:Interger
pushInfo_newMsgNumber: function (data) { pushInfo_newMsgNumber: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.pushInfo_newMsgNumber, data); SessionStorageUtils.set(COMMON.Keys.pushInfo_newMsgNumber, data);
} else { } else {
return SessionStorageUtils.get(Keys.pushInfo_newMsgNumber); return SessionStorageUtils.get(COMMON.Keys.pushInfo_newMsgNumber);
} }
}, },
// Session :ユーザ情報(userInfo)_ログインID:String // Session :ユーザ情報(userInfo)_ログインID:String
userInfo_loginId_session: function (data) { userInfo_loginId_session: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.userInfo_loginId, data); SessionStorageUtils.set(COMMON.Keys.userInfo_loginId, data);
} else { } else {
return SessionStorageUtils.get(Keys.userInfo_loginId); return SessionStorageUtils.get(COMMON.Keys.userInfo_loginId);
} }
}, },
// Session :ユーザ情報(userInfo)_アカウントパス:String // Session :ユーザ情報(userInfo)_アカウントパス:String
userInfo_accountPath_session: function (data) { userInfo_accountPath_session: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.userInfo_accountPath, data); SessionStorageUtils.set(COMMON.Keys.userInfo_accountPath, data);
} else { } else {
return SessionStorageUtils.get(Keys.userInfo_accountPath); return SessionStorageUtils.get(COMMON.Keys.userInfo_accountPath);
} }
}, },
// Session :事業者オプション(serviceOpt)_スクリーンロック(Web版):Char(Y:可能, N:不可) // Session :事業者オプション(serviceOpt)_スクリーンロック(Web版):Char(Y:可能, N:不可)
serviceOpt_web_screen_lock: function (data) { serviceOpt_web_screen_lock: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_web_screen_lock, data); SessionStorageUtils.set(COMMON.Keys.serviceOpt_web_screen_lock, data);
} else { } else {
return SessionStorageUtils.get(Keys.serviceOpt_web_screen_lock); return SessionStorageUtils.get(COMMON.Keys.serviceOpt_web_screen_lock);
} }
}, },
// Session :事業者オプション(serviceOpt)_スクリーンロック待ち時間:Interger // Session :事業者オプション(serviceOpt)_スクリーンロック待ち時間:Interger
serviceOpt_web_screen_lock_wait: function (data) { serviceOpt_web_screen_lock_wait: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.serviceOpt_web_screen_lock_wait, data); SessionStorageUtils.set(COMMON.Keys.serviceOpt_web_screen_lock_wait, data);
} else { } else {
return SessionStorageUtils.get(Keys.serviceOpt_web_screen_lock_wait); return SessionStorageUtils.get(COMMON.Keys.serviceOpt_web_screen_lock_wait);
} }
}, },
isGetitsMode: function (data) { isGetitsMode: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.isGetitsMode, JSON.stringify(data)); SessionStorageUtils.set(COMMON.Keys.isGetitsMode, JSON.stringify(data));
} else { } else {
if (SessionStorageUtils.get(Keys.isGetitsMode) != 'undefined' if (SessionStorageUtils.get(COMMON.Keys.isGetitsMode) != 'undefined'
&& SessionStorageUtils.get(Keys.isGetitsMode) != undefined && SessionStorageUtils.get(COMMON.Keys.isGetitsMode) != undefined
&& SessionStorageUtils.get(Keys.isGetitsMode) != '' && SessionStorageUtils.get(COMMON.Keys.isGetitsMode) != ''
&& SessionStorageUtils.get(Keys.isGetitsMode) != null && SessionStorageUtils.get(COMMON.Keys.isGetitsMode) != null
&& SessionStorageUtils.get(Keys.isGetitsMode) != 'null') { && SessionStorageUtils.get(COMMON.Keys.isGetitsMode) != 'null') {
return JSON.parse(SessionStorageUtils.get(Keys.isGetitsMode)); return JSON.parse(SessionStorageUtils.get(COMMON.Keys.isGetitsMode));
} }
return false; return false;
} }
...@@ -1611,23 +1611,23 @@ var ClientData = { ...@@ -1611,23 +1611,23 @@ var ClientData = {
conf_apiUrl: function (data) { conf_apiUrl: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.conf_apiUrl, data); SessionStorageUtils.set(COMMON.Keys.conf_apiUrl, data);
} else { } else {
return SessionStorageUtils.get(Keys.conf_apiUrl); return SessionStorageUtils.get(COMMON.Keys.conf_apiUrl);
} }
}, },
conf_apiLoginUrl: function (data) { conf_apiLoginUrl: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.conf_apiLoginUrl, data); SessionStorageUtils.set(COMMON.Keys.conf_apiLoginUrl, data);
} else { } else {
return SessionStorageUtils.get(Keys.conf_apiLoginUrl); return SessionStorageUtils.get(COMMON.Keys.conf_apiLoginUrl);
} }
}, },
conf_apiResourceDlUrl: function (data) { conf_apiResourceDlUrl: function (data) {
if (arguments.length > 0) { if (arguments.length > 0) {
SessionStorageUtils.set(Keys.conf_apiResourceDlUrl, data); SessionStorageUtils.set(COMMON.Keys.conf_apiResourceDlUrl, data);
} else { } else {
return SessionStorageUtils.get(Keys.conf_apiResourceDlUrl); return SessionStorageUtils.get(COMMON.Keys.conf_apiResourceDlUrl);
} }
} }
...@@ -1648,11 +1648,11 @@ var LocalStorageUtils = { ...@@ -1648,11 +1648,11 @@ var LocalStorageUtils = {
getUniqueId: function () { getUniqueId: function () {
var uniqueId = ""; var uniqueId = "";
if (avwUserSetting().get(Keys.userInfo_accountPath)) { if (avwUserSetting().get(COMMON.Keys.userInfo_accountPath)) {
uniqueId += avwUserSetting().get(Keys.userInfo_accountPath); uniqueId += avwUserSetting().get(COMMON.Keys.userInfo_accountPath);
} }
if (avwUserSetting().get(Keys.userInfo_loginId)) { if (avwUserSetting().get(COMMON.Keys.userInfo_loginId)) {
uniqueId += "." + avwUserSetting().get(Keys.userInfo_loginId); uniqueId += "." + avwUserSetting().get(COMMON.Keys.userInfo_loginId);
} }
if (uniqueId != "") { if (uniqueId != "") {
uniqueId += "."; uniqueId += ".";
...@@ -2112,7 +2112,7 @@ $(function () { ...@@ -2112,7 +2112,7 @@ $(function () {
// View mode default // View mode default
if (ClientData.sortOpt_viewMode() == null || ClientData.sortOpt_viewMode() == undefined) { if (ClientData.sortOpt_viewMode() == null || ClientData.sortOpt_viewMode() == undefined) {
ClientData.sortOpt_viewMode(Consts.ConstDisplayMode_BookShelf); // Bookshelf ClientData.sortOpt_viewMode(COMMON.Consts.ConstDisplayMode_BookShelf); // Bookshelf
} }
// 動画、音楽繰り返し // 動画、音楽繰り返し
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
新着メッセージがあります!!! 新着メッセージがあります!!!
</div> </div>
<div class="cnt_header"> <div class="cnt_header">
<a class="logo" href="javascript:void(0);" onclick="avwScreenMove(ScreenIds.Home)"> </a> <a class="logo" href="javascript:void(0);" onclick="avwScreenMove(COMMON.ScreenIds.Home)"> </a>
<div class="menu_language"> <div class="menu_language">
<div class="clearfix"> <div class="clearfix">
<ul class="floatL"> <ul class="floatL">
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
新着メッセージがあります!!! 新着メッセージがあります!!!
</div> </div>
<div class="cnt_header"> <div class="cnt_header">
<a class="logo" href="javascript:void(0);" onclick="avwScreenMove(ScreenIds.Home)"> </a> <a class="logo" href="javascript:void(0);" onclick="avwScreenMove(COMMON.ScreenIds.Home)"> </a>
<div class="menu_language"> <div class="menu_language">
<div class="clearfix"> <div class="clearfix">
<ul class="floatL"> <ul class="floatL">
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
新着メッセージがあります!!! 新着メッセージがあります!!!
</div> </div>
<div class="cnt_header"> <div class="cnt_header">
<a class="logo" href="javascript:void(0);" onclick="avwScreenMove(ScreenIds.Home)"> </a> <a class="logo" href="javascript:void(0);" onclick="avwScreenMove(COMMON.ScreenIds.Home)"> </a>
<div class="menu_language"> <div class="menu_language">
<div class="clearfix"> <div class="clearfix">
<ul class="floatL"> <ul class="floatL">
......
...@@ -7,14 +7,14 @@ var pathImgContentNone = './img/page-none.png'; ...@@ -7,14 +7,14 @@ var pathImgContentNone = './img/page-none.png';
// Init function of page // Init function of page
$(document).ready(function () { $(document).ready(function () {
if (!avwCheckLogin(ScreenIds.Login)) return; if (!avwCheckLogin(COMMON.ScreenIds.Login)) return;
COMMON.LockScreen(); COMMON.LockScreen();
document.title = I18N.i18nText('dspShiori') + ' | ' + I18N.i18nText('sysAppTitle'); document.title = I18N.i18nText('dspShiori') + ' | ' + I18N.i18nText('sysAppTitle');
// Set bookmark screen // Set bookmark screen
ClientData.BookmarkScreen(ScreenIds.BookmarkList); ClientData.BookmarkScreen(COMMON.ScreenIds.BookmarkList);
//Check if Force Change password //Check if Force Change password
if (ClientData.requirePasswordChange() != 1) { if (ClientData.requirePasswordChange() != 1) {
...@@ -187,7 +187,7 @@ function dspRead_Click_callback(data) { ...@@ -187,7 +187,7 @@ function dspRead_Click_callback(data) {
ClientData.bookmark_pageNo(data.pageNo); ClientData.bookmark_pageNo(data.pageNo);
ClientData.contentInfo_contentType(data.contentType); ClientData.contentInfo_contentType(data.contentType);
ClientData.IsRefresh(false); ClientData.IsRefresh(false);
avwScreenMove(ScreenIds.ContentView); avwScreenMove(COMMON.ScreenIds.ContentView);
}; };
...@@ -778,7 +778,7 @@ $(function () { ...@@ -778,7 +778,7 @@ $(function () {
$("#dspPubDt").click(dspPubDt_Click); $("#dspPubDt").click(dspPubDt_Click);
// Check JP language and show title kana // Check JP language and show title kana
if (getCurrentLanguage() != Consts.ConstLanguage_Ja) { if (getCurrentLanguage() != COMMON.Consts.ConstLanguage_Ja) {
$("#dspTitleNmKn").hide(); $("#dspTitleNmKn").hide();
$("#dspTitleNmKn_Seperate").hide(); $("#dspTitleNmKn_Seperate").hide();
} }
...@@ -928,7 +928,7 @@ function AddContent(strContentId, contentType) { ...@@ -928,7 +928,7 @@ function AddContent(strContentId, contentType) {
event of changing language event of changing language
*/ */
function changeLanguageCallBackFunction() { function changeLanguageCallBackFunction() {
if (getCurrentLanguage() != Consts.ConstLanguage_Ja) { if (getCurrentLanguage() != COMMON.Consts.ConstLanguage_Ja) {
$("#dspTitleNmKn").hide(); $("#dspTitleNmKn").hide();
$("#dspTitleNmKn_Seperate").hide(); $("#dspTitleNmKn_Seperate").hide();
$("#txtTitleNmKnAsc").hide(); $("#txtTitleNmKnAsc").hide();
...@@ -944,7 +944,7 @@ function changeLanguageCallBackFunction() { ...@@ -944,7 +944,7 @@ function changeLanguageCallBackFunction() {
// else { // else {
// $("#txtTitleNmKnDesc").show(); // $("#txtTitleNmKnDesc").show();
// } // }
HEADER.setStatusSort('#dspTitleNmKn', orderSort == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#dspTitleNmKn', orderSort == COMMON.Consts.ConstOrderSetting_Asc);
} }
} }
document.title = I18N.i18nText('dspShiori') + ' | ' + I18N.i18nText('sysAppTitle'); document.title = I18N.i18nText('dspShiori') + ' | ' + I18N.i18nText('sysAppTitle');
......
...@@ -39,7 +39,7 @@ var home_isMove = false; ...@@ -39,7 +39,7 @@ var home_isMove = false;
$(document).ready(function(){ $(document).ready(function(){
if (!avwCheckLogin(ScreenIds.Login)){ if (!avwCheckLogin(COMMON.ScreenIds.Login)){
return; return;
} }
...@@ -48,7 +48,7 @@ $(document).ready(function(){ ...@@ -48,7 +48,7 @@ $(document).ready(function(){
document.title = I18N.i18nText('txtSearchResult') + ' | ' + I18N.i18nText('sysAppTitle'); document.title = I18N.i18nText('txtSearchResult') + ' | ' + I18N.i18nText('sysAppTitle');
// Set bookmark screen // Set bookmark screen
ClientData.BookmarkScreen(ScreenIds.ContentSearch); ClientData.BookmarkScreen(COMMON.ScreenIds.ContentSearch);
//Check if Force Change password //Check if Force Change password
if(ClientData.requirePasswordChange() != 1){ if(ClientData.requirePasswordChange() != 1){
...@@ -357,8 +357,8 @@ function handleBackToTop(){ ...@@ -357,8 +357,8 @@ function handleBackToTop(){
//Handle language //Handle language
function handleLanguage(){ function handleLanguage(){
//if(ClientData.userInfo_language() == Consts.ConstLanguage_En || ClientData.userInfo_language() == Consts.ConstLanguage_Ko) //if(ClientData.userInfo_language() == COMMON.Consts.ConstLanguage_En || ClientData.userInfo_language() == COMMON.Consts.ConstLanguage_Ko)
if (getCurrentLanguage() == Consts.ConstLanguage_En || getCurrentLanguage() == Consts.ConstLanguage_Ko) if (getCurrentLanguage() == COMMON.Consts.ConstLanguage_En || getCurrentLanguage() == COMMON.Consts.ConstLanguage_Ko)
{ {
$('#control-sort-titlekana').css('display','none'); $('#control-sort-titlekana').css('display','none');
$('#separate').css('display','none'); $('#separate').css('display','none');
...@@ -370,7 +370,7 @@ function handleLanguage(){ ...@@ -370,7 +370,7 @@ function handleLanguage(){
var orderSort = ClientData.searchCond_sortOrder(); var orderSort = ClientData.searchCond_sortOrder();
// if (typeSort == 2) { // if (typeSort == 2) {
// if (orderSort == Consts.ConstOrderSetting_Asc) { // if (orderSort == COMMON.Consts.ConstOrderSetting_Asc) {
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#titlekana-sorttype').html('▲'); // $('#titlekana-sorttype').html('▲');
// $('#titlekana-sorttype').css('width', '12px'); // $('#titlekana-sorttype').css('width', '12px');
...@@ -381,7 +381,7 @@ function handleLanguage(){ ...@@ -381,7 +381,7 @@ function handleLanguage(){
// $('#titlekana-sorttype').css('width', '12px'); // $('#titlekana-sorttype').css('width', '12px');
// } // }
// } // }
HEADER.setStatusSort('#'+$('#menu_sort li.current a').attr('id'),orderSort == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#'+$('#menu_sort li.current a').attr('id'),orderSort == COMMON.Consts.ConstOrderSetting_Asc);
} }
if(noRecordFlg){ if(noRecordFlg){
$('#control-sort-titlekana').css('display','block'); $('#control-sort-titlekana').css('display','block');
...@@ -593,10 +593,10 @@ function sortByTitleFunction(){ ...@@ -593,10 +593,10 @@ function sortByTitleFunction(){
var genreId = ClientData.searchCond_genreId(); var genreId = ClientData.searchCond_genreId();
var groupId = ClientData.searchCond_groupId(); var groupId = ClientData.searchCond_groupId();
if(sortOrder == Consts.ConstOrderSetting_Asc) if(sortOrder == COMMON.Consts.ConstOrderSetting_Asc)
{ {
if(sortType == '1'){ if(sortType == '1'){
sortOrder = Consts.ConstOrderSetting_Desc; sortOrder = COMMON.Consts.ConstOrderSetting_Desc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#title-sorttype').html('▼'); // $('#title-sorttype').html('▼');
// $('#title-sorttype').css('width', '12px'); // $('#title-sorttype').css('width', '12px');
...@@ -604,7 +604,7 @@ function sortByTitleFunction(){ ...@@ -604,7 +604,7 @@ function sortByTitleFunction(){
// $('#rDate-sorttype').html(''); // $('#rDate-sorttype').html('');
} }
else{ else{
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#title-sorttype').html('▲'); // $('#title-sorttype').html('▲');
// $('#title-sorttype').css('width', '12px'); // $('#title-sorttype').css('width', '12px');
...@@ -615,7 +615,7 @@ function sortByTitleFunction(){ ...@@ -615,7 +615,7 @@ function sortByTitleFunction(){
} }
else else
{ {
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#title-sorttype').html('▲'); // $('#title-sorttype').html('▲');
// $('#title-sorttype').css('width', '12px'); // $('#title-sorttype').css('width', '12px');
...@@ -624,7 +624,7 @@ function sortByTitleFunction(){ ...@@ -624,7 +624,7 @@ function sortByTitleFunction(){
ClientData.searchCond_sortOrder(sortOrder); ClientData.searchCond_sortOrder(sortOrder);
} }
HEADER.setStatusSort('#control-sort-title',sortOrder == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-title',sortOrder == COMMON.Consts.ConstOrderSetting_Asc);
if(recordFrom == null || recordFrom == 'undefined'){ if(recordFrom == null || recordFrom == 'undefined'){
recordFrom = DEFAULT_DISP_NUMBER_RECORD_FROM; recordFrom = DEFAULT_DISP_NUMBER_RECORD_FROM;
...@@ -665,10 +665,10 @@ function sortByTitleKanaFunction(){ ...@@ -665,10 +665,10 @@ function sortByTitleKanaFunction(){
var genreId = ClientData.searchCond_genreId(); var genreId = ClientData.searchCond_genreId();
var groupId = ClientData.searchCond_groupId(); var groupId = ClientData.searchCond_groupId();
if(sortOrder == Consts.ConstOrderSetting_Asc) if(sortOrder == COMMON.Consts.ConstOrderSetting_Asc)
{ {
if(sortType == '2'){ if(sortType == '2'){
sortOrder = Consts.ConstOrderSetting_Desc; sortOrder = COMMON.Consts.ConstOrderSetting_Desc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#titlekana-sorttype').html('▼'); // $('#titlekana-sorttype').html('▼');
...@@ -676,7 +676,7 @@ function sortByTitleKanaFunction(){ ...@@ -676,7 +676,7 @@ function sortByTitleKanaFunction(){
// $('#rDate-sorttype').html(''); // $('#rDate-sorttype').html('');
} }
else{ else{
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#titlekana-sorttype').html('▲'); // $('#titlekana-sorttype').html('▲');
...@@ -687,7 +687,7 @@ function sortByTitleKanaFunction(){ ...@@ -687,7 +687,7 @@ function sortByTitleKanaFunction(){
} }
else else
{ {
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#titlekana-sorttype').html('▲'); // $('#titlekana-sorttype').html('▲');
...@@ -696,7 +696,7 @@ function sortByTitleKanaFunction(){ ...@@ -696,7 +696,7 @@ function sortByTitleKanaFunction(){
ClientData.searchCond_sortOrder(sortOrder); ClientData.searchCond_sortOrder(sortOrder);
} }
HEADER.setStatusSort('#control-sort-titlekana',sortOrder == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-titlekana',sortOrder == COMMON.Consts.ConstOrderSetting_Asc);
if(recordFrom == null || recordFrom == 'undefined'){ if(recordFrom == null || recordFrom == 'undefined'){
recordFrom = DEFAULT_DISP_NUMBER_RECORD_FROM; recordFrom = DEFAULT_DISP_NUMBER_RECORD_FROM;
...@@ -738,10 +738,10 @@ function sortByReleaseDateFunction(){ ...@@ -738,10 +738,10 @@ function sortByReleaseDateFunction(){
var genreId = ClientData.searchCond_genreId(); var genreId = ClientData.searchCond_genreId();
var groupId = ClientData.searchCond_groupId(); var groupId = ClientData.searchCond_groupId();
if(sortOrder == Consts.ConstOrderSetting_Asc) if(sortOrder == COMMON.Consts.ConstOrderSetting_Asc)
{ {
if(sortType == '3'){ if(sortType == '3'){
sortOrder = Consts.ConstOrderSetting_Desc; sortOrder = COMMON.Consts.ConstOrderSetting_Desc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html(''); // $('#rDate-sorttype').html('');
...@@ -749,7 +749,7 @@ function sortByReleaseDateFunction(){ ...@@ -749,7 +749,7 @@ function sortByReleaseDateFunction(){
// $('#rDate-sorttype').css('width', '12px'); // $('#rDate-sorttype').css('width', '12px');
} }
else{ else{
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html(''); // $('#rDate-sorttype').html('');
...@@ -760,7 +760,7 @@ function sortByReleaseDateFunction(){ ...@@ -760,7 +760,7 @@ function sortByReleaseDateFunction(){
} }
else else
{ {
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html(''); // $('#rDate-sorttype').html('');
...@@ -769,7 +769,7 @@ function sortByReleaseDateFunction(){ ...@@ -769,7 +769,7 @@ function sortByReleaseDateFunction(){
ClientData.searchCond_sortOrder(sortOrder); ClientData.searchCond_sortOrder(sortOrder);
} }
HEADER.setStatusSort('#control-sort-releasedate',sortOrder == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-releasedate',sortOrder == COMMON.Consts.ConstOrderSetting_Asc);
if(recordFrom == null || recordFrom == 'undefined'){ if(recordFrom == null || recordFrom == 'undefined'){
recordFrom = DEFAULT_DISP_NUMBER_RECORD_FROM; recordFrom = DEFAULT_DISP_NUMBER_RECORD_FROM;
...@@ -820,7 +820,7 @@ function returnContentType(contentid){ ...@@ -820,7 +820,7 @@ function returnContentType(contentid){
//Check content type is pdf content //Check content type is pdf content
function isPdfContent(contentType){ function isPdfContent(contentType){
if(!(contentType == ContentTypeKeys.Type_PDF)){ if(!(contentType == COMMON.ContentTypeKeys.Type_PDF)){
return false; return false;
} }
else{ else{
...@@ -957,13 +957,13 @@ function readSubmenuFunction_callback(contentId) ...@@ -957,13 +957,13 @@ function readSubmenuFunction_callback(contentId)
//Start Function : No.12 -- Editor : Le Long -- Date : 08/02/2013 -- Summary : Check content type other for download. //Start Function : No.12 -- Editor : Le Long -- Date : 08/02/2013 -- Summary : Check content type other for download.
//For testing without other Type. //For testing without other Type.
if(contentType == ContentTypeKeys.Type_Others){ if(contentType == COMMON.ContentTypeKeys.Type_Others){
//Download content //Download content
HEADER.downloadResourceById(contentId); HEADER.downloadResourceById(contentId);
// redraw content remove new icon // redraw content remove new icon
drawEditImage(contentId); drawEditImage(contentId);
} }
else if( contentType == ContentTypeKeys.Type_Link ){ else if( contentType == COMMON.ContentTypeKeys.Type_Link ){
//link content //link content
HEADER.viewLinkContentById(contentId); HEADER.viewLinkContentById(contentId);
// redraw content remove new icon // redraw content remove new icon
...@@ -971,7 +971,7 @@ function readSubmenuFunction_callback(contentId) ...@@ -971,7 +971,7 @@ function readSubmenuFunction_callback(contentId)
} }
else{ else{
//Go to Conten view page //Go to Conten view page
avwScreenMove(ScreenIds.ContentView); avwScreenMove(COMMON.ScreenIds.ContentView);
} }
//End Function : No.12 -- Editor : Le Long -- Date : 08/02/2013 -- Summary : Check content type other for download. //End Function : No.12 -- Editor : Le Long -- Date : 08/02/2013 -- Summary : Check content type other for download.
}; };
...@@ -1414,7 +1414,7 @@ function handleSortDisp(){ ...@@ -1414,7 +1414,7 @@ function handleSortDisp(){
orderSort = ClientData.searchCond_sortOrder(); orderSort = ClientData.searchCond_sortOrder();
if(typeSort == 1){ if(typeSort == 1){
// if(orderSort == Consts.ConstOrderSetting_Asc){ // if(orderSort == COMMON.Consts.ConstOrderSetting_Asc){
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#title-sorttype').html('▲'); // $('#title-sorttype').html('▲');
// $('#title-sorttype').css('width', '12px'); // $('#title-sorttype').css('width', '12px');
...@@ -1431,12 +1431,12 @@ function handleSortDisp(){ ...@@ -1431,12 +1431,12 @@ function handleSortDisp(){
// //
// $('#control-sort-title').addClass('active_tops'); // $('#control-sort-title').addClass('active_tops');
HEADER.setStatusSort('#control-sort-title',orderSort == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-title',orderSort == COMMON.Consts.ConstOrderSetting_Asc);
} }
else if(typeSort == 2){ else if(typeSort == 2){
// if(orderSort == Consts.ConstOrderSetting_Asc){ // if(orderSort == COMMON.Consts.ConstOrderSetting_Asc){
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#titlekana-sorttype').html('▲'); // $('#titlekana-sorttype').html('▲');
...@@ -1453,11 +1453,11 @@ function handleSortDisp(){ ...@@ -1453,11 +1453,11 @@ function handleSortDisp(){
// //
// $('#control-sort-titlekana').addClass('active_tops'); // $('#control-sort-titlekana').addClass('active_tops');
HEADER.setStatusSort('#control-sort-titlekana',orderSort == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-titlekana',orderSort == COMMON.Consts.ConstOrderSetting_Asc);
} }
else if(typeSort == 3){ else if(typeSort == 3){
// if(orderSort == Consts.ConstOrderSetting_Asc){ // if(orderSort == COMMON.Consts.ConstOrderSetting_Asc){
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html(''); // $('#rDate-sorttype').html('');
...@@ -1474,7 +1474,7 @@ function handleSortDisp(){ ...@@ -1474,7 +1474,7 @@ function handleSortDisp(){
// //
// $('#control-sort-releasedate').addClass('active_tops'); // $('#control-sort-releasedate').addClass('active_tops');
HEADER.setStatusSort('#control-sort-releasedate',orderSort == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-releasedate',orderSort == COMMON.Consts.ConstOrderSetting_Asc);
} }
} }
} }
...@@ -1639,7 +1639,7 @@ function displayResultNoRecord(){ ...@@ -1639,7 +1639,7 @@ function displayResultNoRecord(){
$('#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();
if(getCurrentLanguage() == Consts.ConstLanguage_En || getCurrentLanguage() == Consts.ConstLanguage_Ko){ if(getCurrentLanguage() == COMMON.Consts.ConstLanguage_En || getCurrentLanguage() == COMMON.Consts.ConstLanguage_Ko){
/*$('#control-sort-titlekana').hide();*/ /*$('#control-sort-titlekana').hide();*/
$('#separate').hide(); $('#separate').hide();
$('#control-sort-titlekana').hide(); $('#control-sort-titlekana').hide();
...@@ -1649,7 +1649,7 @@ function displayResultNoRecord(){ ...@@ -1649,7 +1649,7 @@ function displayResultNoRecord(){
function enableSort(){ function enableSort(){
$('.control_sort_on').show(); $('.control_sort_on').show();
$('.control_sort_off').hide(); $('.control_sort_off').hide();
if(getCurrentLanguage() == Consts.ConstLanguage_En || getCurrentLanguage() == Consts.ConstLanguage_Ko){ if(getCurrentLanguage() == COMMON.Consts.ConstLanguage_En || getCurrentLanguage() == COMMON.Consts.ConstLanguage_Ko){
$('#control-sort-titlekana').hide(); $('#control-sort-titlekana').hide();
$('#separate').hide(); $('#separate').hide();
} }
......
...@@ -184,7 +184,7 @@ function bookmarkPage() { ...@@ -184,7 +184,7 @@ function bookmarkPage() {
var enBookmark = new BookMarkEntity(); var enBookmark = new BookMarkEntity();
enBookmark.contentid = contentID; enBookmark.contentid = contentID;
enBookmark.pageNo = changePageIndex(getPageIndex()); enBookmark.pageNo = changePageIndex(getPageIndex());
if(contentType == ContentTypeKeys.Type_Image){ if(contentType == COMMON.ContentTypeKeys.Type_Image){
enBookmark.contentTitle = imageTypeData.contentName; enBookmark.contentTitle = imageTypeData.contentName;
enBookmark.contentTitleKana = imageTypeData.contentNameKana; enBookmark.contentTitleKana = imageTypeData.contentNameKana;
} }
...@@ -230,10 +230,10 @@ function bookmarkPage() { ...@@ -230,10 +230,10 @@ function bookmarkPage() {
/* function changePage Index->pageno */ /* function changePage Index->pageno */
function changePageIndex(page_index) { function changePageIndex(page_index) {
//Start: Function No.12 //Start: Function No.12
if(contentType == ContentTypeKeys.Type_Image){ if(contentType == COMMON.ContentTypeKeys.Type_Image){
return 1; return 1;
} }
else if(contentType == ContentTypeKeys.Type_NoFile){ else if(contentType == COMMON.ContentTypeKeys.Type_NoFile){
return page_index + 1; return page_index + 1;
} }
//End: Function No.12 //End: Function No.12
...@@ -245,7 +245,7 @@ function changePageIndex(page_index) { ...@@ -245,7 +245,7 @@ function changePageIndex(page_index) {
/* function change PageNo -> pageIndex */ /* function change PageNo -> pageIndex */
function changePageNo(page_no) { function changePageNo(page_no) {
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
var dataContent = dataWebContentPage.pages; var dataContent = dataWebContentPage.pages;
for (var nIndex = 0; nIndex < dataContent.length; nIndex++) { for (var nIndex = 0; nIndex < dataContent.length; nIndex++) {
if (dataContent[nIndex].pageNo == page_no) { if (dataContent[nIndex].pageNo == page_no) {
...@@ -254,7 +254,7 @@ function changePageNo(page_no) { ...@@ -254,7 +254,7 @@ function changePageNo(page_no) {
} }
} }
//START : TRB00032 - Editor : Long - Date : 09/10/2013 - Summary : Process Type None //START : TRB00032 - Editor : Long - Date : 09/10/2013 - Summary : Process Type None
else if(contentType == ContentTypeKeys.Type_NoFile){ else if(contentType == COMMON.ContentTypeKeys.Type_NoFile){
page_no = page_no - 1; page_no = page_no - 1;
return page_no; return page_no;
} }
...@@ -306,7 +306,7 @@ function handleAPIWebContentPage(dataJson, pos) { ...@@ -306,7 +306,7 @@ function handleAPIWebContentPage(dataJson, pos) {
//Start Function : No.4 - Editor : Long - Date : 08/20/2013 //Start Function : No.4 - Editor : Long - Date : 08/20/2013
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
for (var nIndex = 0; nIndex < bmList.length; nIndex++) { for (var nIndex = 0; nIndex < bmList.length; nIndex++) {
nIndexBookMark = -1; nIndexBookMark = -1;
var contentPage = dataJson.pages; var contentPage = dataJson.pages;
...@@ -405,7 +405,7 @@ function handleAPIWebContentPage(dataJson, pos) { ...@@ -405,7 +405,7 @@ function handleAPIWebContentPage(dataJson, pos) {
} }
} }
} }
else if(contentType == ContentTypeKeys.Type_Image ){ else if(contentType == COMMON.ContentTypeKeys.Type_Image ){
for (var nIndex = 0; nIndex < bmList.length; nIndex++) { for (var nIndex = 0; nIndex < bmList.length; nIndex++) {
nIndexBookMark = -1; nIndexBookMark = -1;
...@@ -476,7 +476,7 @@ function handleAPIWebContentPage(dataJson, pos) { ...@@ -476,7 +476,7 @@ function handleAPIWebContentPage(dataJson, pos) {
} }
} }
} }
else if(contentType == ContentTypeKeys.Type_NoFile){ else if(contentType == COMMON.ContentTypeKeys.Type_NoFile){
for (var nIndex = 0; nIndex < bmList.length; nIndex++) { for (var nIndex = 0; nIndex < bmList.length; nIndex++) {
$('#divListBookmark').append( $('#divListBookmark').append(
...@@ -523,7 +523,7 @@ function handleAPIWebContentPage(dataJson, pos) { ...@@ -523,7 +523,7 @@ function handleAPIWebContentPage(dataJson, pos) {
//End Function : No.4 - Editor : Long - Date : 08/20/2013 //End Function : No.4 - Editor : Long - Date : 08/20/2013
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
if (lstPageNoBookMark.length > 0) { if (lstPageNoBookMark.length > 0) {
isSendingData = true; isSendingData = true;
loadDataBookmark(lstPageNoBookMark); loadDataBookmark(lstPageNoBookMark);
...@@ -1069,7 +1069,7 @@ function changePage(page_index) { ...@@ -1069,7 +1069,7 @@ function changePage(page_index) {
// Clear canvas offscreen // Clear canvas offscreen
clearCanvas(document.getElementById("offscreen")); clearCanvas(document.getElementById("offscreen"));
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
avwGrabContentPageImage(ClientData.userInfo_accountPath(), avwGrabContentPageImage(ClientData.userInfo_accountPath(),
{ contentId: contentID, sid: ClientData.userInfo_sid(), pageNo: page_index + 1 }, { contentId: contentID, sid: ClientData.userInfo_sid(), pageNo: page_index + 1 },
function (data) { function (data) {
...@@ -1092,7 +1092,7 @@ function changePage(page_index) { ...@@ -1092,7 +1092,7 @@ function changePage(page_index) {
}); });
} }
//START : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process //START : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process
else if(contentType == ContentTypeKeys.Type_NoFile){ else if(contentType == COMMON.ContentTypeKeys.Type_NoFile){
/* get page Objects */ /* get page Objects */
getPageObjectsByPageIndex(pageObjectsData, page_index); getPageObjectsByPageIndex(pageObjectsData, page_index);
getContent().setPageImages(totalPage, pageImages) getContent().setPageImages(totalPage, pageImages)
...@@ -1704,7 +1704,7 @@ function handleFromJumpContent() { ...@@ -1704,7 +1704,7 @@ function handleFromJumpContent() {
if (ClientData.common_prePageNo()) { if (ClientData.common_prePageNo()) {
//changePage(changePageNo(ClientData.common_prePageNo())); //changePage(changePageNo(ClientData.common_prePageNo()));
changePageWithoutSlide(changePageNo(ClientData.common_prePageNo())); changePageWithoutSlide(changePageNo(ClientData.common_prePageNo()));
//LocalStorageUtils.remove(Keys.common_prePageNo); //LocalStorageUtils.remove(COMMON.Keys.common_prePageNo);
ClientData.common_prePageNo(null) ClientData.common_prePageNo(null)
} }
}; };
...@@ -2001,7 +2001,7 @@ function changePageWithoutSlide(pageMove) { ...@@ -2001,7 +2001,7 @@ function changePageWithoutSlide(pageMove) {
// Clear canvas offscreen // Clear canvas offscreen
clearCanvas(document.getElementById("offscreen")); clearCanvas(document.getElementById("offscreen"));
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
avwGrabContentPageImage(ClientData.userInfo_accountPath(), avwGrabContentPageImage(ClientData.userInfo_accountPath(),
{ contentId: contentID, sid: ClientData.userInfo_sid(), pageNo: pageMove + 1 }, { contentId: contentID, sid: ClientData.userInfo_sid(), pageNo: pageMove + 1 },
function (data) { function (data) {
...@@ -2060,7 +2060,7 @@ function changePageWithoutSlide(pageMove) { ...@@ -2060,7 +2060,7 @@ function changePageWithoutSlide(pageMove) {
}); });
} }
//START : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process //START : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process
else if(contentType == ContentTypeKeys.Type_NoFile){ else if(contentType == COMMON.ContentTypeKeys.Type_NoFile){
/* get page Objects */ /* get page Objects */
getPageObjectsByPageIndex(pageObjectsData, pageMove); getPageObjectsByPageIndex(pageObjectsData, pageMove);
getContent().setPageImages(totalPage, pageImages).setPageObjects(pageObjects); getContent().setPageImages(totalPage, pageImages).setPageObjects(pageObjects);
...@@ -2166,14 +2166,14 @@ function displayOverlayForSpecifyContentType(){ ...@@ -2166,14 +2166,14 @@ function displayOverlayForSpecifyContentType(){
var contentId = ClientData.contentInfo_contentId(); var contentId = ClientData.contentInfo_contentId();
var resourceUrl = downloadResourceById(contentId); var resourceUrl = downloadResourceById(contentId);
//contentType = ContentTypeKeys.Type_Html; //contentType = COMMON.ContentTypeKeys.Type_Html;
if(contentType == ContentTypeKeys.Type_Music){ if(contentType == COMMON.ContentTypeKeys.Type_Music){
handleForContentTypeMusic(resourceUrl); handleForContentTypeMusic(resourceUrl);
} }
else if(contentType == ContentTypeKeys.Type_Video){ else if(contentType == COMMON.ContentTypeKeys.Type_Video){
handleForContentTypeVideo(resourceUrl); handleForContentTypeVideo(resourceUrl);
} }
else if(contentType == ContentTypeKeys.Type_Html){ else if(contentType == COMMON.ContentTypeKeys.Type_Html){
//DHカスタム //DHカスタム
var linkUrlTmp = resourceUrl; var linkUrlTmp = resourceUrl;
...@@ -2408,8 +2408,8 @@ function handleForContentTypeHTML(resourceUrl){ ...@@ -2408,8 +2408,8 @@ function handleForContentTypeHTML(resourceUrl){
//Check type of content //Check type of content
function isMediaAndHTMLContent(){ function isMediaAndHTMLContent(){
if(contentType == ContentTypeKeys.Type_Music || contentType == ContentTypeKeys.Type_Video || if(contentType == COMMON.ContentTypeKeys.Type_Music || contentType == COMMON.ContentTypeKeys.Type_Video ||
contentType == ContentTypeKeys.Type_Html){ contentType == COMMON.ContentTypeKeys.Type_Html){
return true; return true;
} }
else{ else{
...@@ -2423,8 +2423,8 @@ function enableSpecifyControl(){ ...@@ -2423,8 +2423,8 @@ function enableSpecifyControl(){
//Disable All control //Disable All control
disableAllControl(); disableAllControl();
if(contentType == ContentTypeKeys.Type_Html || contentType == ContentTypeKeys.Type_Music || if(contentType == COMMON.ContentTypeKeys.Type_Html || contentType == COMMON.ContentTypeKeys.Type_Music ||
contentType == ContentTypeKeys.Type_Video){ contentType == COMMON.ContentTypeKeys.Type_Video){
enableControlForMediaAndHtmlType(); enableControlForMediaAndHtmlType();
} }
...@@ -2503,7 +2503,7 @@ function enableControlForImageAndNoneType(){ ...@@ -2503,7 +2503,7 @@ function enableControlForImageAndNoneType(){
//Full screen function for not pdf type //Full screen function for not pdf type
function fullScreenForNotPdfType(){ function fullScreenForNotPdfType(){
if(contentType == ContentTypeKeys.Type_Video){ if(contentType == COMMON.ContentTypeKeys.Type_Video){
if(avwUserEnvObj.os == 'ipad'){ if(avwUserEnvObj.os == 'ipad'){
$('#content_video').removeAttr('controls'); $('#content_video').removeAttr('controls');
} }
...@@ -2542,11 +2542,11 @@ function originalScreenForNotPdfType(){ ...@@ -2542,11 +2542,11 @@ function originalScreenForNotPdfType(){
var $container = $('#dialog'); var $container = $('#dialog');
$container.removeAttr('style'); $container.removeAttr('style');
if(contentType == ContentTypeKeys.Type_Music){ if(contentType == COMMON.ContentTypeKeys.Type_Music){
$container.css('background', 'url(./img/iPad_music.png) center no-repeat'); $container.css('background', 'url(./img/iPad_music.png) center no-repeat');
$container.css('background-color', 'white'); $container.css('background-color', 'white');
} }
else if(contentType == ContentTypeKeys.Type_Html){ else if(contentType == COMMON.ContentTypeKeys.Type_Html){
$container.css('left','0%'); $container.css('left','0%');
$container.css('position','absolute'); $container.css('position','absolute');
//$container.css('height','100%'); //$container.css('height','100%');
...@@ -2558,7 +2558,7 @@ function originalScreenForNotPdfType(){ ...@@ -2558,7 +2558,7 @@ function originalScreenForNotPdfType(){
//START TRB00068 //START TRB00068
if (avwUserEnvObj.os == "ipad") { if (avwUserEnvObj.os == "ipad") {
if(contentType == ContentTypeKeys.Type_Video){ if(contentType == COMMON.ContentTypeKeys.Type_Video){
$('#content_video').attr('controls', 'controls'); $('#content_video').attr('controls', 'controls');
if(isShowVideoContent){ if(isShowVideoContent){
...@@ -2592,7 +2592,7 @@ function downloadResourceById(contentId){ ...@@ -2592,7 +2592,7 @@ function downloadResourceById(contentId){
var resourceUrl; var resourceUrl;
abapi('webGetContent', params, 'GET', function (data) { abapi('webGetContent', params, 'GET', function (data) {
var resourceId; var resourceId;
if(contentType == ContentTypeKeys.Type_Html){ if(contentType == COMMON.ContentTypeKeys.Type_Html){
resourceUrl = data.contentDataSub[0].resourceUrl; resourceUrl = data.contentDataSub[0].resourceUrl;
} }
else{ else{
...@@ -2650,7 +2650,7 @@ function setViewportForTouchDevice(maximumScale){ ...@@ -2650,7 +2650,7 @@ function setViewportForTouchDevice(maximumScale){
$("document").ready(function () { $("document").ready(function () {
/* check login */ /* check login */
if (!avwCheckLogin(ScreenIds.Login)) return; if (!avwCheckLogin(COMMON.ScreenIds.Login)) return;
// Set event to prevent leave // Set event to prevent leave
COMMON.ToogleLogoutNortice(); COMMON.ToogleLogoutNortice();
//START TRB00048 - EDITOR : Long - Date : 09/18/2013 - Summary : Fix Jumpcontent //START TRB00048 - EDITOR : Long - Date : 09/18/2013 - Summary : Fix Jumpcontent
...@@ -3140,7 +3140,7 @@ ContentPage.prototype.drawPage = function (context, opt) { ...@@ -3140,7 +3140,7 @@ ContentPage.prototype.drawPage = function (context, opt) {
//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
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
if(opt == null || opt == 0){ if(opt == null || opt == 0){
getPageSizeByPageNo(changePageIndex(getPageIndex())); getPageSizeByPageNo(changePageIndex(getPageIndex()));
//#11478 //#11478
...@@ -3198,7 +3198,7 @@ ContentPage.prototype.drawPage = function (context, opt) { ...@@ -3198,7 +3198,7 @@ ContentPage.prototype.drawPage = function (context, opt) {
} }
}*/ }*/
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
//#11478 //#11478
//if(opt == null || opt == 0){ //if(opt == null || opt == 0){
// $("#offscreen").attr('height', heightEachPage); // $("#offscreen").attr('height', heightEachPage);
...@@ -3234,7 +3234,7 @@ ContentPage.prototype.drawPage = function (context, opt) { ...@@ -3234,7 +3234,7 @@ ContentPage.prototype.drawPage = function (context, opt) {
var img = new Image(); var img = new Image();
img.onload = function () { img.onload = function () {
//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
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
if(opt == null || opt == 0){ if(opt == null || opt == 0){
//#11478 //#11478
heightEachPage = img.naturalHeight; heightEachPage = img.naturalHeight;
...@@ -3271,7 +3271,7 @@ ContentPage.prototype.drawPage = function (context, opt) { ...@@ -3271,7 +3271,7 @@ ContentPage.prototype.drawPage = function (context, opt) {
flip(opt); flip(opt);
//Start Function: No.12 //Start Function: No.12
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
/* draw linkList */ /* draw linkList */
drawGetWebContent4(context, opt); drawGetWebContent4(context, opt);
} }
...@@ -3291,7 +3291,7 @@ ContentPage.prototype.drawPage = function (context, opt) { ...@@ -3291,7 +3291,7 @@ ContentPage.prototype.drawPage = function (context, opt) {
drawMarkingOnScreen(opt); drawMarkingOnScreen(opt);
/*set status is loading page */ /*set status is loading page */
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile){
if(totalPage > 1){ if(totalPage > 1){
if(opt != 0 && opt != null){ if(opt != 0 && opt != null){
isLoadingObject = false; isLoadingObject = false;
...@@ -3311,7 +3311,7 @@ ContentPage.prototype.drawPage = function (context, opt) { ...@@ -3311,7 +3311,7 @@ ContentPage.prototype.drawPage = function (context, opt) {
enableButtonMarking(); enableButtonMarking();
} else { } else {
//Start Function : No.4 - Summary : make sure next or prev page is loaded //Start Function : No.4 - Summary : make sure next or prev page is loaded
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile){
if(totalPage > 1){ if(totalPage > 1){
if(opt != 0 && opt != null){ if(opt != 0 && opt != null){
enableAllControl(); enableAllControl();
...@@ -3328,7 +3328,7 @@ ContentPage.prototype.drawPage = function (context, opt) { ...@@ -3328,7 +3328,7 @@ ContentPage.prototype.drawPage = function (context, opt) {
} }
/*finish loading */ /*finish loading */
//Start Function : No.4 - Summary : make sure next or prev page is loaded //Start Function : No.4 - Summary : make sure next or prev page is loaded
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile){
if(totalPage > 1){ if(totalPage > 1){
if(opt != 0 && opt != null){ if(opt != 0 && opt != null){
$('#divImageLoading').css('display', 'none'); $('#divImageLoading').css('display', 'none');
...@@ -3354,7 +3354,7 @@ ContentPage.prototype.drawPage = function (context, opt) { ...@@ -3354,7 +3354,7 @@ ContentPage.prototype.drawPage = function (context, opt) {
drawMarkingOnScreen(opt); drawMarkingOnScreen(opt);
/*set status is loading page */ /*set status is loading page */
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile){
if(totalPage > 1){ if(totalPage > 1){
if(opt != 0 && opt != null){ if(opt != 0 && opt != null){
isLoadingObject = false; isLoadingObject = false;
...@@ -3374,7 +3374,7 @@ ContentPage.prototype.drawPage = function (context, opt) { ...@@ -3374,7 +3374,7 @@ ContentPage.prototype.drawPage = function (context, opt) {
} }
else { else {
//Start Function : No.4 - Summary : make sure next or prev page is loaded //Start Function : No.4 - Summary : make sure next or prev page is loaded
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile){
if(totalPage > 1){ if(totalPage > 1){
if(opt != 0 && opt != null){ if(opt != 0 && opt != null){
enableAllControl(); enableAllControl();
...@@ -3393,7 +3393,7 @@ ContentPage.prototype.drawPage = function (context, opt) { ...@@ -3393,7 +3393,7 @@ ContentPage.prototype.drawPage = function (context, opt) {
/*finish loading */ /*finish loading */
//Start Function : No.4 - Summary : make sure next or prev page is loaded //Start Function : No.4 - Summary : make sure next or prev page is loaded
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile){
if(totalPage > 1){ if(totalPage > 1){
if(opt != 0 && opt != null){ if(opt != 0 && opt != null){
$('#divImageLoading').css('display', 'none'); $('#divImageLoading').css('display', 'none');
...@@ -3629,7 +3629,7 @@ function removeObject() { ...@@ -3629,7 +3629,7 @@ function removeObject() {
//Start Function : No.12 - Editor :Long - Date: 08/12/2013 - Summary : prevent close dialog if content is not pdf //Start Function : No.12 - Editor :Long - Date: 08/12/2013 - Summary : prevent close dialog if content is not pdf
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile){
hideDialog(); hideDialog();
} }
//End Function : No.12 - Editor :Long - Date: 08/12/2013 - Summary : prevent close dialog if content is not pdf //End Function : No.12 - Editor :Long - Date: 08/12/2013 - Summary : prevent close dialog if content is not pdf
...@@ -3874,7 +3874,7 @@ function enableControlsCopyMemo() { ...@@ -3874,7 +3874,7 @@ function enableControlsCopyMemo() {
$('#imgbookmark').removeClass(); $('#imgbookmark').removeClass();
//Start Function : No.12 - Editor : Long - Date : 08/28/2013 - Summary : //Start Function : No.12 - Editor : Long - Date : 08/28/2013 - Summary :
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
$('#listindex').bind('click', showListPageIndex); $('#listindex').bind('click', showListPageIndex);
$('#listindex').removeClass(); $('#listindex').removeClass();
...@@ -3899,11 +3899,11 @@ function enableControlsCopyMemo() { ...@@ -3899,11 +3899,11 @@ function enableControlsCopyMemo() {
$('#imgmarkingtoolbar').removeClass(); $('#imgmarkingtoolbar').removeClass();
} }
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
$("#slider_page").slider("option", "disabled", false); $("#slider_page").slider("option", "disabled", false);
COMMON.enable('#txtSearch', '#txtSlider'); COMMON.enable('#txtSearch', '#txtSlider');
} }
else if(contentType == ContentTypeKeys.Type_NoFile){ else if(contentType == COMMON.ContentTypeKeys.Type_NoFile){
$("#slider_page").slider("option", "disabled", false); $("#slider_page").slider("option", "disabled", false);
COMMON.enable('#txtSlider'); COMMON.enable('#txtSlider');
} }
......
...@@ -184,7 +184,7 @@ function getDataJsonFile() { ...@@ -184,7 +184,7 @@ function getDataJsonFile() {
} }
//Get Data Of page to draw page //Get Data Of page to draw page
if(contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_NoFile){
var pageDataInfo = []; var pageDataInfo = [];
pageDataInfo["height"] = JsonFile.height; pageDataInfo["height"] = JsonFile.height;
......
...@@ -439,7 +439,7 @@ PageObject.prototype.drawPageObject = function (context, opt) { ...@@ -439,7 +439,7 @@ PageObject.prototype.drawPageObject = function (context, opt) {
/*set status is loading page */ /*set status is loading page */
//Start Function : No.4 - Summary : make sure all page is loaded //Start Function : No.4 - Summary : make sure all page is loaded
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile){
if(totalPage > 1){ if(totalPage > 1){
if(opt != 0 && opt != null){ if(opt != 0 && opt != null){
isLoadingObject = false; isLoadingObject = false;
...@@ -458,7 +458,7 @@ PageObject.prototype.drawPageObject = function (context, opt) { ...@@ -458,7 +458,7 @@ PageObject.prototype.drawPageObject = function (context, opt) {
if (ClientData.IsAddingMarking() == true) { if (ClientData.IsAddingMarking() == true) {
disableAllControl(); disableAllControl();
//Start Function : No.4 - Summary : make sure all page is loaded //Start Function : No.4 - Summary : make sure all page is loaded
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile){
if(totalPage > 1){ if(totalPage > 1){
if(opt != 0 && opt != null){ if(opt != 0 && opt != null){
enableButtonMarking(); enableButtonMarking();
...@@ -475,7 +475,7 @@ PageObject.prototype.drawPageObject = function (context, opt) { ...@@ -475,7 +475,7 @@ PageObject.prototype.drawPageObject = function (context, opt) {
} }
else { else {
//Start Function : No.4 - Summary : make sure all page is loaded //Start Function : No.4 - Summary : make sure all page is loaded
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile){
if(totalPage > 1){ if(totalPage > 1){
if(opt != 0 && opt != null){ if(opt != 0 && opt != null){
enableAllControl(); enableAllControl();
...@@ -493,7 +493,7 @@ PageObject.prototype.drawPageObject = function (context, opt) { ...@@ -493,7 +493,7 @@ PageObject.prototype.drawPageObject = function (context, opt) {
/*finish loading */ /*finish loading */
//Start Function : No.4 - Summary : make sure all page is loaded //Start Function : No.4 - Summary : make sure all page is loaded
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile){
if(totalPage > 1){ if(totalPage > 1){
if(opt != 0 && opt != null){ if(opt != 0 && opt != null){
$('#divImageLoading').css('display', 'none'); $('#divImageLoading').css('display', 'none');
...@@ -525,7 +525,7 @@ PageObject.prototype.drawPageObject = function (context, opt) { ...@@ -525,7 +525,7 @@ PageObject.prototype.drawPageObject = function (context, opt) {
if (ClientData.IsAddingMarking() == true) { if (ClientData.IsAddingMarking() == true) {
disableAllControl(); disableAllControl();
//Start Function : No.4 - Summary : make sure all page is loaded //Start Function : No.4 - Summary : make sure all page is loaded
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile){
if(totalPage > 1){ if(totalPage > 1){
if(opt != 0 && opt != null){ if(opt != 0 && opt != null){
enableButtonMarking(); enableButtonMarking();
...@@ -541,7 +541,7 @@ PageObject.prototype.drawPageObject = function (context, opt) { ...@@ -541,7 +541,7 @@ PageObject.prototype.drawPageObject = function (context, opt) {
//End Function : No.4 - Summary : make sure all page is loaded //End Function : No.4 - Summary : make sure all page is loaded
} else { } else {
//Start Function : No.4 - Summary : make sure all page is loaded //Start Function : No.4 - Summary : make sure all page is loaded
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile){
if(totalPage > 1){ if(totalPage > 1){
if(opt != 0 && opt != null){ if(opt != 0 && opt != null){
enableAllControl(); enableAllControl();
...@@ -559,7 +559,7 @@ PageObject.prototype.drawPageObject = function (context, opt) { ...@@ -559,7 +559,7 @@ PageObject.prototype.drawPageObject = function (context, opt) {
/*finish loading */ /*finish loading */
//Start Function : No.4 - Summary : make sure all page is loaded //Start Function : No.4 - Summary : make sure all page is loaded
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile){
if(totalPage > 1){ if(totalPage > 1){
if(opt != 0 && opt != null){ if(opt != 0 && opt != null){
$('#divImageLoading').css('display', 'none'); $('#divImageLoading').css('display', 'none');
...@@ -1164,7 +1164,7 @@ var moveToContent = function (mediaType, actionType, id, imageUrl, x, y, w, h, v ...@@ -1164,7 +1164,7 @@ var moveToContent = function (mediaType, actionType, id, imageUrl, x, y, w, h, v
var dataJump = ClientData.JumpQueue(); var dataJump = ClientData.JumpQueue();
dataJump.push(oldContent); dataJump.push(oldContent);
ClientData.JumpQueue(dataJump); ClientData.JumpQueue(dataJump);
avwScreenMove(ScreenIds.ContentView); avwScreenMove(COMMON.ScreenIds.ContentView);
} }
} }
//Type 0 //Type 0
...@@ -1177,7 +1177,7 @@ var moveToContent = function (mediaType, actionType, id, imageUrl, x, y, w, h, v ...@@ -1177,7 +1177,7 @@ var moveToContent = function (mediaType, actionType, id, imageUrl, x, y, w, h, v
var dataJump = ClientData.JumpQueue(); var dataJump = ClientData.JumpQueue();
dataJump.push(oldContent); dataJump.push(oldContent);
ClientData.JumpQueue(dataJump); ClientData.JumpQueue(dataJump);
avwScreenMove(ScreenIds.ContentView); avwScreenMove(COMMON.ScreenIds.ContentView);
} }
}, },
...@@ -1248,7 +1248,7 @@ function createAlertTypeDialog(msg){ ...@@ -1248,7 +1248,7 @@ function createAlertTypeDialog(msg){
var dataJump = ClientData.JumpQueue(); var dataJump = ClientData.JumpQueue();
dataJump.push(moveContentParam.oldContent); dataJump.push(moveContentParam.oldContent);
ClientData.JumpQueue(dataJump); ClientData.JumpQueue(dataJump);
avwScreenMove(ScreenIds.ContentView); avwScreenMove(COMMON.ScreenIds.ContentView);
}); });
}; };
...@@ -1314,7 +1314,7 @@ function createPwdRequiredTypeDialog(){ ...@@ -1314,7 +1314,7 @@ function createPwdRequiredTypeDialog(){
// update sid id // update sid id
ClientData.userInfo_sid(data.sid); ClientData.userInfo_sid(data.sid);
avwScreenMove(ScreenIds.ContentView); avwScreenMove(COMMON.ScreenIds.ContentView);
} }
else { else {
$('#lblMessageLimitError').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), data.errorMessage).toString()).show(); $('#lblMessageLimitError').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), data.errorMessage).toString()).show();
...@@ -2219,7 +2219,7 @@ function createPage(pageNumber, pageImage, pageObjects, onCompleteFunc) { ...@@ -2219,7 +2219,7 @@ function createPage(pageNumber, pageImage, pageObjects, onCompleteFunc) {
var page = new ContentPage(pageNumber, pageImage); var page = new ContentPage(pageNumber, pageImage);
/* add page Object */ /* add page Object */
//Start Function: No.12 //Start Function: No.12
if (contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile) { if (contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile) {
page.addPageObjects(pageObjects); page.addPageObjects(pageObjects);
} }
//End Function: No.12 //End Function: No.12
......
...@@ -365,7 +365,7 @@ function firstPage_click() { ...@@ -365,7 +365,7 @@ function firstPage_click() {
// Clear canvas offscreen // Clear canvas offscreen
clearCanvas(document.getElementById("offscreen")); clearCanvas(document.getElementById("offscreen"));
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
avwGrabContentPageImage(ClientData.userInfo_accountPath(), avwGrabContentPageImage(ClientData.userInfo_accountPath(),
{ contentId: contentID, sid: ClientData.userInfo_sid(), pageNo: 1 }, { contentId: contentID, sid: ClientData.userInfo_sid(), pageNo: 1 },
function (data) { function (data) {
...@@ -392,7 +392,7 @@ function firstPage_click() { ...@@ -392,7 +392,7 @@ function firstPage_click() {
}); });
} }
//START : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process //START : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process
else if(contentType == ContentTypeKeys.Type_NoFile){ else if(contentType == COMMON.ContentTypeKeys.Type_NoFile){
getPageObjectsByPageIndex(pageObjectsData, 0); getPageObjectsByPageIndex(pageObjectsData, 0);
getContent().setPageImages(totalPage, pageImages).setPageObjects(pageObjects); getContent().setPageImages(totalPage, pageImages).setPageObjects(pageObjects);
...@@ -438,7 +438,7 @@ function lastPage_click() { ...@@ -438,7 +438,7 @@ function lastPage_click() {
//pageImages = getURLPageImage("webContentPageImage") + "?contentId=" + contentID + "&sid=" + ClientData.userInfo_sid() + "&pageNo=" + (totalPage - 1); //pageImages = getURLPageImage("webContentPageImage") + "?contentId=" + contentID + "&sid=" + ClientData.userInfo_sid() + "&pageNo=" + (totalPage - 1);
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
avwGrabContentPageImage(ClientData.userInfo_accountPath(), avwGrabContentPageImage(ClientData.userInfo_accountPath(),
{ contentId: contentID, sid: ClientData.userInfo_sid(), pageNo: totalPage }, { contentId: contentID, sid: ClientData.userInfo_sid(), pageNo: totalPage },
function (data) { function (data) {
...@@ -460,7 +460,7 @@ function lastPage_click() { ...@@ -460,7 +460,7 @@ function lastPage_click() {
}); });
} }
//START : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process //START : TRB00032 - Editor : Long - Date: 09/10/2013 - Summary : type none process
else if(contentType == ContentTypeKeys.Type_NoFile){ else if(contentType == COMMON.ContentTypeKeys.Type_NoFile){
getPageObjectsByPageIndex(pageObjectsData, totalPage - 1); getPageObjectsByPageIndex(pageObjectsData, totalPage - 1);
getContent().setPageImages(totalPage, pageImages).setPageObjects(pageObjects); getContent().setPageImages(totalPage, pageImages).setPageObjects(pageObjects);
...@@ -522,15 +522,15 @@ $(document).keydown(function (e) { ...@@ -522,15 +522,15 @@ $(document).keydown(function (e) {
} else { } else {
switch (e.keyCode) { switch (e.keyCode) {
/* move page */ /* move page */
case ShortKeys.MovePrevious: /* move prev */ case COMMON.ShortKeys.MovePrevious: /* move prev */
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile){
if (getContent().hasPreviousPage()) { if (getContent().hasPreviousPage()) {
prevPage_click(); prevPage_click();
} }
} }
break; break;
case ShortKeys.MoveNext: /* move next */ case COMMON.ShortKeys.MoveNext: /* move next */
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile){
if (getContent().hasNextPage()) { if (getContent().hasNextPage()) {
nextPage_click(); nextPage_click();
} }
...@@ -539,31 +539,31 @@ $(document).keydown(function (e) { ...@@ -539,31 +539,31 @@ $(document).keydown(function (e) {
break; break;
/* zoom */ /* zoom */
case ShortKeys.ZoomIn: /* zoomIn */ case COMMON.ShortKeys.ZoomIn: /* zoomIn */
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_Image if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_Image
|| contentType == ContentTypeKeys.Type_NoFile){ || contentType == COMMON.ContentTypeKeys.Type_NoFile){
zoomIn(); zoomIn();
} }
break; break;
case ShortKeys.ZoomOut: /* zoomOut */ case COMMON.ShortKeys.ZoomOut: /* zoomOut */
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_Image if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_Image
|| contentType == ContentTypeKeys.Type_NoFile){ || contentType == COMMON.ContentTypeKeys.Type_NoFile){
zoomOut(); zoomOut();
} }
break; break;
case ShortKeys.ZoomFit: /* screenFit*/ case COMMON.ShortKeys.ZoomFit: /* screenFit*/
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_Image if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_Image
|| contentType == ContentTypeKeys.Type_NoFile){ || contentType == COMMON.ContentTypeKeys.Type_NoFile){
screenFit(); screenFit();
} }
break; break;
/* marking && toolbar */ /* marking && toolbar */
case ShortKeys.ShowHideToolbar: /* handle toolbar */ case COMMON.ShortKeys.ShowHideToolbar: /* handle toolbar */
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_Image if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_Image
|| contentType == ContentTypeKeys.Type_NoFile){ || contentType == COMMON.ContentTypeKeys.Type_NoFile){
handleDisplayToolbar(); handleDisplayToolbar();
} }
else{ else{
...@@ -576,9 +576,9 @@ $(document).keydown(function (e) { ...@@ -576,9 +576,9 @@ $(document).keydown(function (e) {
} }
break; break;
case ShortKeys.ShowHideMarking: /* hide marking */ case COMMON.ShortKeys.ShowHideMarking: /* hide marking */
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_Image if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_Image
|| contentType == ContentTypeKeys.Type_NoFile){ || contentType == COMMON.ContentTypeKeys.Type_NoFile){
imgmarking_click(); imgmarking_click();
} }
...@@ -594,30 +594,30 @@ $(document).keydown(function (e) { ...@@ -594,30 +594,30 @@ $(document).keydown(function (e) {
else { else {
switch (e.keyCode) { switch (e.keyCode) {
/* zoom */ /* zoom */
case ShortKeys.ZoomInAlt: /* zoomIn */ case COMMON.ShortKeys.ZoomInAlt: /* zoomIn */
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_Image if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_Image
|| contentType == ContentTypeKeys.Type_NoFile){ || contentType == COMMON.ContentTypeKeys.Type_NoFile){
zoomIn(); zoomIn();
} }
break; break;
case ShortKeys.ZoomOutAlt: /* zoomOut */ case COMMON.ShortKeys.ZoomOutAlt: /* zoomOut */
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_Image if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_Image
|| contentType == ContentTypeKeys.Type_NoFile){ || contentType == COMMON.ContentTypeKeys.Type_NoFile){
zoomOut(); zoomOut();
} }
break; break;
case ShortKeys.ZoominAlt_Firefox: /* zoomIn */ case COMMON.ShortKeys.ZoominAlt_Firefox: /* zoomIn */
if(avwUserEnvObj.browser == 'firefox'){ if(avwUserEnvObj.browser == 'firefox'){
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_Image if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_Image
|| contentType == ContentTypeKeys.Type_NoFile){ || contentType == COMMON.ContentTypeKeys.Type_NoFile){
zoomIn(); zoomIn();
} }
} }
break; break;
case ShortKeys.ZoomOutAlt_Firefox: /* zoomOut */ case COMMON.ShortKeys.ZoomOutAlt_Firefox: /* zoomOut */
if(avwUserEnvObj.browser == 'firefox'){ if(avwUserEnvObj.browser == 'firefox'){
if(contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_Image if(contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_Image
|| contentType == ContentTypeKeys.Type_NoFile){ || contentType == COMMON.ContentTypeKeys.Type_NoFile){
zoomOut(); zoomOut();
} }
} }
...@@ -1306,7 +1306,7 @@ function imgBack_click() { ...@@ -1306,7 +1306,7 @@ function imgBack_click() {
if (ClientData.JumpQueue()) { if (ClientData.JumpQueue()) {
var oldDataBack = ClientData.JumpQueue(); var oldDataBack = ClientData.JumpQueue();
if (oldDataBack.length > 0) { if (oldDataBack.length > 0) {
avwScreenMove(ScreenIds.ContentView); avwScreenMove(COMMON.ScreenIds.ContentView);
ClientData.IsJumpBack(true); ClientData.IsJumpBack(true);
} else { } else {
/*check back */ /*check back */
...@@ -1334,8 +1334,8 @@ function imgHome_click(e) { ...@@ -1334,8 +1334,8 @@ function imgHome_click(e) {
COMMON.SetEndLog(contentID); COMMON.SetEndLog(contentID);
COMMON.RegisterLog(); COMMON.RegisterLog();
//window.location.href = ScreenIds.Home; //window.location.href = COMMON.ScreenIds.Home;
avwScreenMove(ScreenIds.Home); avwScreenMove(COMMON.ScreenIds.Home);
}; };
function closePopUpCopyMemo() { function closePopUpCopyMemo() {
......
...@@ -296,7 +296,7 @@ function enableAllControl() { ...@@ -296,7 +296,7 @@ function enableAllControl() {
$("#imgbookmark").css('cursor', 'pointer'); $("#imgbookmark").css('cursor', 'pointer');
//Start Function: No.12 //Start Function: No.12
if (contentType == ContentTypeKeys.Type_PDF) { if (contentType == COMMON.ContentTypeKeys.Type_PDF) {
$("#listindex").css('cursor', 'pointer'); $("#listindex").css('cursor', 'pointer');
$("#copytext").css('cursor', 'pointer'); $("#copytext").css('cursor', 'pointer');
} }
...@@ -317,7 +317,7 @@ function enableAllControl() { ...@@ -317,7 +317,7 @@ function enableAllControl() {
$("#control_screen_2").css('cursor', 'pointer'); $("#control_screen_2").css('cursor', 'pointer');
//Start Function: No.12 //Start Function: No.12
if (contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile) { if (contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile) {
$("#slider_page").css('cursor', 'pointer'); $("#slider_page").css('cursor', 'pointer');
$(".ui-slider-handle").css('cursor', 'pointer'); $(".ui-slider-handle").css('cursor', 'pointer');
} }
...@@ -345,7 +345,7 @@ function enableAllControl() { ...@@ -345,7 +345,7 @@ function enableAllControl() {
$('#imgbookmark').removeClass(); $('#imgbookmark').removeClass();
//Start Function: No.12 //Start Function: No.12
if (contentType == ContentTypeKeys.Type_PDF) { if (contentType == COMMON.ContentTypeKeys.Type_PDF) {
$('#listindex').bind('click', showListPageIndex); $('#listindex').bind('click', showListPageIndex);
$('#listindex').removeClass(); $('#listindex').removeClass();
...@@ -372,13 +372,13 @@ function enableAllControl() { ...@@ -372,13 +372,13 @@ function enableAllControl() {
checkDisableButtonZoom(); checkDisableButtonZoom();
//Start Function: No.12 //Start Function: No.12
if (contentType == ContentTypeKeys.Type_PDF || contentType == ContentTypeKeys.Type_NoFile) { if (contentType == COMMON.ContentTypeKeys.Type_PDF || contentType == COMMON.ContentTypeKeys.Type_NoFile) {
$("#slider_page").slider("option", "disabled", false); $("#slider_page").slider("option", "disabled", false);
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
COMMON.enable('#txtSearch', '#txtSlider'); COMMON.enable('#txtSearch', '#txtSlider');
} }
else if(contentType == ContentTypeKeys.Type_NoFile){ else if(contentType == COMMON.ContentTypeKeys.Type_NoFile){
COMMON.enable('#txtSlider'); COMMON.enable('#txtSlider');
} }
} }
......
...@@ -1229,7 +1229,7 @@ function renderNextPage(){ ...@@ -1229,7 +1229,7 @@ function renderNextPage(){
var pageNo = parseInt(changePageIndex(getPageIndex())) + 1; var pageNo = parseInt(changePageIndex(getPageIndex())) + 1;
//Get next page background image //Get next page background image
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
avwGrabContentPageImage(ClientData.userInfo_accountPath(), avwGrabContentPageImage(ClientData.userInfo_accountPath(),
{ contentId: contentID, sid: ClientData.userInfo_sid(), pageNo: pageNo }, { contentId: contentID, sid: ClientData.userInfo_sid(), pageNo: pageNo },
function (data) { function (data) {
...@@ -1245,7 +1245,7 @@ function renderNextPage(){ ...@@ -1245,7 +1245,7 @@ function renderNextPage(){
}); });
} }
//Start Function : No.12 - Editor : Long - Date : 08/28/2013 - Summary : Render next page content image the same with the current one //Start Function : No.12 - Editor : Long - Date : 08/28/2013 - Summary : Render next page content image the same with the current one
else if(contentType == ContentTypeKeys.Type_NoFile){ else if(contentType == COMMON.ContentTypeKeys.Type_NoFile){
nextPageImage = pageImages; nextPageImage = pageImages;
nextContent.setPageImages(totalPage, nextPageImage) nextContent.setPageImages(totalPage, nextPageImage)
.setPageObjects(nextPageObjects) .setPageObjects(nextPageObjects)
...@@ -1262,7 +1262,7 @@ function renderPrevPage(){ ...@@ -1262,7 +1262,7 @@ function renderPrevPage(){
var pageNo = parseInt(changePageIndex(getPageIndex())) - 1; var pageNo = parseInt(changePageIndex(getPageIndex())) - 1;
//Get prev page background image //Get prev page background image
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
avwGrabContentPageImage(ClientData.userInfo_accountPath(), avwGrabContentPageImage(ClientData.userInfo_accountPath(),
{ contentId: contentID, sid: ClientData.userInfo_sid(), pageNo: pageNo }, { contentId: contentID, sid: ClientData.userInfo_sid(), pageNo: pageNo },
function (data) { function (data) {
...@@ -1278,7 +1278,7 @@ function renderPrevPage(){ ...@@ -1278,7 +1278,7 @@ function renderPrevPage(){
}); });
} }
//Start Function : No.12 - Editor : Long - Date : 08/28/2013 - Summary : Render next page content image the same with the current one //Start Function : No.12 - Editor : Long - Date : 08/28/2013 - Summary : Render next page content image the same with the current one
else if(contentType == ContentTypeKeys.Type_NoFile){ else if(contentType == COMMON.ContentTypeKeys.Type_NoFile){
prevPageImage = pageImages; prevPageImage = pageImages;
prevContent.setPageImages(totalPage, prevPageImage) prevContent.setPageImages(totalPage, prevPageImage)
.setPageObjects(prevPageObjects) .setPageObjects(prevPageObjects)
......
...@@ -143,10 +143,10 @@ function initPage() { ...@@ -143,10 +143,10 @@ function initPage() {
/* get info of content */ /* get info of content */
//Start Function: No.12 //Start Function: No.12
if(contentType == ContentTypeKeys.Type_Image){ if(contentType == COMMON.ContentTypeKeys.Type_Image){
getContentInfoTypeImage(); getContentInfoTypeImage();
} }
else if(contentType == ContentTypeKeys.Type_NoFile){ else if(contentType == COMMON.ContentTypeKeys.Type_NoFile){
//Start Function: No.4 - Editor : Long - Date: 08/20/2013 //Start Function: No.4 - Editor : Long - Date: 08/20/2013
getPageTransitionConfig(); getPageTransitionConfig();
//End Function : No.4 - Editor : Long - Date : 08/20/2013 //End Function : No.4 - Editor : Long - Date : 08/20/2013
...@@ -186,7 +186,7 @@ function initPage() { ...@@ -186,7 +186,7 @@ function initPage() {
//Start Function : No.12 //Start Function : No.12
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
/* page index */ /* page index */
$('#listindex').click(showListPageIndex); $('#listindex').click(showListPageIndex);
$('#divSearchResult li').live('click', clickSearchDetail); $('#divSearchResult li').live('click', clickSearchDetail);
...@@ -219,7 +219,7 @@ function initPage() { ...@@ -219,7 +219,7 @@ function initPage() {
$('#liDeleteMemo').click(click_liDeleteMemo); $('#liDeleteMemo').click(click_liDeleteMemo);
//Start Function: No.12 //Start Function: No.12
if(contentType == ContentTypeKeys.Type_PDF){ if(contentType == COMMON.ContentTypeKeys.Type_PDF){
/*event search*/ /*event search*/
showListSearchResult(); showListSearchResult();
} }
...@@ -413,7 +413,7 @@ function initPage() { ...@@ -413,7 +413,7 @@ function initPage() {
//START TRB00048 - EDITOR : Long - Date : 09/18/2013 - Summary : //START TRB00048 - EDITOR : Long - Date : 09/18/2013 - Summary :
else if(nAjaxLoad == 4){ else if(nAjaxLoad == 4){
//END TRB00048 - EDITOR : Long - Date : 09/18/2013 - Summary : //END TRB00048 - EDITOR : Long - Date : 09/18/2013 - Summary :
if(contentType == ContentTypeKeys.Type_NoFile){ if(contentType == COMMON.ContentTypeKeys.Type_NoFile){
/* handle from bookmark page */ /* handle from bookmark page */
//handleFromBookMarkPage(); //handleFromBookMarkPage();
/* check move content */ /* check move content */
...@@ -807,7 +807,7 @@ function initImageCheckMarking() { ...@@ -807,7 +807,7 @@ function initImageCheckMarking() {
//Start Function: No.12 - Editor : Long //Start Function: No.12 - Editor : Long
var tempPageNo = 0; var tempPageNo = 0;
if(contentType == ContentTypeKeys.Type_Image) if(contentType == COMMON.ContentTypeKeys.Type_Image)
{ {
tempPageNo = 1; tempPageNo = 1;
} }
......
...@@ -47,7 +47,7 @@ function dlgMarking_dspSave_click() { ...@@ -47,7 +47,7 @@ function dlgMarking_dspSave_click() {
/*create new entity marking */ /*create new entity marking */
var marking = new MarkingEntity(); var marking = new MarkingEntity();
marking.contentid = contentID; marking.contentid = contentID;
if(contentType == ContentTypeKeys.Type_Image){ if(contentType == COMMON.ContentTypeKeys.Type_Image){
marking.pageNo = 1; marking.pageNo = 1;
}else{ }else{
marking.pageNo = changePageIndex(getPageIndex()); marking.pageNo = changePageIndex(getPageIndex());
......
...@@ -15,7 +15,7 @@ var displayData = { ...@@ -15,7 +15,7 @@ var displayData = {
// Init function of page // Init function of page
$(document).ready(function () { $(document).ready(function () {
//alert(ClientData.contentInfo_contentId()); //alert(ClientData.contentInfo_contentId());
//if (!avwCheckLogin(ScreenIds.Login)) return; //if (!avwCheckLogin(COMMON.ScreenIds.Login)) return;
//openContentDetail(); //openContentDetail();
...@@ -199,16 +199,16 @@ function contentdetail_dspRead_Click_callback(outputId) { ...@@ -199,16 +199,16 @@ function contentdetail_dspRead_Click_callback(outputId) {
//$('body,html').animate({ scrollTop: 0 }, 0); //$('body,html').animate({ scrollTop: 0 }, 0);
ClientData.IsRefresh(false); ClientData.IsRefresh(false);
if (ClientData.contentInfo_contentType() == ContentTypeKeys.Type_Others) { if (ClientData.contentInfo_contentType() == COMMON.ContentTypeKeys.Type_Others) {
// Get content detail // Get content detail
HEADER.downloadResourceById(ClientData.contentInfo_contentId()); HEADER.downloadResourceById(ClientData.contentInfo_contentId());
} }
else if(ClientData.contentInfo_contentType() == ContentTypeKeys.Type_Link){ else if(ClientData.contentInfo_contentType() == COMMON.ContentTypeKeys.Type_Link){
// Get content detail // Get content detail
HEADER.viewLinkContentById(ClientData.contentInfo_contentId()); HEADER.viewLinkContentById(ClientData.contentInfo_contentId());
} }
else { else {
avwScreenMove(ScreenIds.ContentView); avwScreenMove(COMMON.ScreenIds.ContentView);
} }
}; };
...@@ -224,7 +224,7 @@ function contentdetail_dspRead_Click_callback(outputId) { ...@@ -224,7 +224,7 @@ function contentdetail_dspRead_Click_callback(outputId) {
//Check content type is pdf content //Check content type is pdf content
function isPdfContent(contentType){ function isPdfContent(contentType){
if(!(contentType == ContentTypeKeys.Type_PDF)){ if(!(contentType == COMMON.ContentTypeKeys.Type_PDF)){
return false; return false;
} }
else{ else{
......
...@@ -8,7 +8,7 @@ HEADER.isHoverOn = false; ...@@ -8,7 +8,7 @@ HEADER.isHoverOn = false;
$(document).ready(function () { $(document).ready(function () {
if (!avwCheckLogin(ScreenIds.Login)) return; if (!avwCheckLogin(COMMON.ScreenIds.Login)) return;
// Set event to prevent leave // Set event to prevent leave
//avwSetLogoutNortice(); //avwSetLogoutNortice();
...@@ -261,19 +261,19 @@ HEADER.searchHeaderButtonFunction = function(){ ...@@ -261,19 +261,19 @@ HEADER.searchHeaderButtonFunction = function(){
ClientData.searchCond_searchText(searchText); ClientData.searchCond_searchText(searchText);
ClientData.searchCond_searchDivision(searchDivision); ClientData.searchCond_searchDivision(searchDivision);
//window.location = ScreenIds.ContentSearch; //window.location = COMMON.ScreenIds.ContentSearch;
avwScreenMove(ScreenIds.ContentSearch); avwScreenMove(COMMON.ScreenIds.ContentSearch);
}; };
HEADER.homeClickFunction = function(){ HEADER.homeClickFunction = function(){
//window.location = ScreenIds.Home; //window.location = COMMON.ScreenIds.Home;
avwScreenMove(ScreenIds.Home); avwScreenMove(COMMON.ScreenIds.Home);
}; };
//Change Language Japanese function //Change Language Japanese function
HEADER.changeLanguageJa = function(){ HEADER.changeLanguageJa = function(){
changeLanguage(Consts.ConstLanguage_Ja); changeLanguage(COMMON.Consts.ConstLanguage_Ja);
//ClientData.userInfo_language(Consts.ConstLanguage_Ja); //ClientData.userInfo_language(COMMON.Consts.ConstLanguage_Ja);
//$('#control-sort-titlekana').css('display','inline-block'); //$('#control-sort-titlekana').css('display','inline-block');
//$('#separate').css('display','inline-block'); //$('#separate').css('display','inline-block');
//formatDisplayMoreRecord(); //formatDisplayMoreRecord();
...@@ -285,8 +285,8 @@ HEADER.changeLanguageJa = function(){ ...@@ -285,8 +285,8 @@ HEADER.changeLanguageJa = function(){
//Change Language English functions //Change Language English functions
HEADER.changeLanguageEn = function(){ HEADER.changeLanguageEn = function(){
changeLanguage(Consts.ConstLanguage_En); changeLanguage(COMMON.Consts.ConstLanguage_En);
//ClientData.userInfo_language(Consts.ConstLanguage_En); //ClientData.userInfo_language(COMMON.Consts.ConstLanguage_En);
//$('#control-sort-titlekana').css('display','none'); //$('#control-sort-titlekana').css('display','none');
//$('#separate').css('display','none'); //$('#separate').css('display','none');
//formatDisplayMoreRecord(); //formatDisplayMoreRecord();
...@@ -298,8 +298,8 @@ HEADER.changeLanguageEn = function(){ ...@@ -298,8 +298,8 @@ HEADER.changeLanguageEn = function(){
//Change Language English function //Change Language English function
HEADER.changeLanguageKo = function(){ HEADER.changeLanguageKo = function(){
changeLanguage(Consts.ConstLanguage_Ko); changeLanguage(COMMON.Consts.ConstLanguage_Ko);
//ClientData.userInfo_language(Consts.ConstLanguage_Ko); //ClientData.userInfo_language(COMMON.Consts.ConstLanguage_Ko);
//$('#control-sort-titlekana').css('display','none'); //$('#control-sort-titlekana').css('display','none');
//$('#separate').css('display','none'); //$('#separate').css('display','none');
//formatDisplayMoreRecord(); //formatDisplayMoreRecord();
...@@ -311,14 +311,14 @@ HEADER.changeLanguageKo = function(){ ...@@ -311,14 +311,14 @@ HEADER.changeLanguageKo = function(){
//Shiori function //Shiori function
HEADER.bookmarkFunction = function(){ HEADER.bookmarkFunction = function(){
//window.location = ScreenIds.BookmarkList; //window.location = COMMON.ScreenIds.BookmarkList;
avwScreenMove(ScreenIds.BookmarkList); avwScreenMove(COMMON.ScreenIds.BookmarkList);
}; };
//Update Config function //Update Config function
HEADER.updateConfigFunction = function(){ HEADER.updateConfigFunction = function(){
//window.location = ScreenIds.Setting; //window.location = COMMON.ScreenIds.Setting;
avwScreenMove(ScreenIds.Setting); avwScreenMove(COMMON.ScreenIds.Setting);
}; };
//Logout function //Logout function
...@@ -415,8 +415,8 @@ HEADER.logoutFunction = function() { ...@@ -415,8 +415,8 @@ HEADER.logoutFunction = function() {
}; };
HEADER.historyClickFunction = function(){ HEADER.historyClickFunction = function(){
//window.location = ScreenIds.History; //window.location = COMMON.ScreenIds.History;
avwScreenMove(ScreenIds.History); avwScreenMove(COMMON.ScreenIds.History);
}; };
//Web Logout Event //Web Logout Event
...@@ -432,10 +432,10 @@ HEADER.webLogoutEvent = function(){ ...@@ -432,10 +432,10 @@ HEADER.webLogoutEvent = function(){
function (data) { function (data) {
isExisted = true; isExisted = true;
SessionStorageUtils.clear(); SessionStorageUtils.clear();
avwUserSetting().remove(Keys.userInfo_sid); avwUserSetting().remove(COMMON.Keys.userInfo_sid);
// Move to login screen // Move to login screen
//window.location = ScreenIds.Login; //window.location = COMMON.ScreenIds.Login;
avwScreenMove(ScreenIds.Login); avwScreenMove(COMMON.ScreenIds.Login);
}, },
function (xmlHttpRequest, txtStatus, errorThrown) { function (xmlHttpRequest, txtStatus, errorThrown) {
if (xmlHttpRequest.status == 403) { if (xmlHttpRequest.status == 403) {
...@@ -463,7 +463,7 @@ function confirmWithoutBackupFunction(e) { ...@@ -463,7 +463,7 @@ function confirmWithoutBackupFunction(e) {
} }
ClientData.userOpt_logoutMode(1); // In next time, if choose: [do not show dialog], will not backup and logout ClientData.userOpt_logoutMode(1); // In next time, if choose: [do not show dialog], will not backup and logout
//window.location = ScreenIds.Login; //window.location = COMMON.ScreenIds.Login;
HEADER.webLogoutEvent(); HEADER.webLogoutEvent();
}; };
...@@ -726,7 +726,7 @@ HEADER.sendSignalBackupFinish = function(typeBackup) ...@@ -726,7 +726,7 @@ HEADER.sendSignalBackupFinish = function(typeBackup)
/* ------ */ /* ------ */
HEADER.checkForceChangePassword = function(){ HEADER.checkForceChangePassword = function(){
if(ClientData.BookmarkScreen() != ScreenIds.Setting){ if(ClientData.BookmarkScreen() != COMMON.ScreenIds.Setting){
if(ClientData.requirePasswordChange() == 1){ if(ClientData.requirePasswordChange() == 1){
//alert(I18N.i18nText('msgPWDNeedChange')); //alert(I18N.i18nText('msgPWDNeedChange'));
HEADER.showErrorScreenForceChangePassword(); HEADER.showErrorScreenForceChangePassword();
...@@ -760,8 +760,8 @@ HEADER.showErrorScreenForceChangePassword = function(){ ...@@ -760,8 +760,8 @@ HEADER.showErrorScreenForceChangePassword = function(){
}); });
$('#avw-unauth-ok').click(function() { $('#avw-unauth-ok').click(function() {
ClientData.BookmarkScreen(ScreenIds.Setting); ClientData.BookmarkScreen(COMMON.ScreenIds.Setting);
avwScreenMove(ScreenIds.Setting); avwScreenMove(COMMON.ScreenIds.Setting);
}); });
}; };
...@@ -999,47 +999,47 @@ HEADER.getIconTypeContent = function(contentType) { ...@@ -999,47 +999,47 @@ HEADER.getIconTypeContent = function(contentType) {
var src = ''; var src = '';
switch (contentType) { switch (contentType) {
case ContentTypeKeys.Type_PDF: case COMMON.ContentTypeKeys.Type_PDF:
{ {
src = 'img/bookshelf/icon_01.jpg'; src = 'img/bookshelf/icon_01.jpg';
break; break;
} }
case ContentTypeKeys.Type_Enquete: case COMMON.ContentTypeKeys.Type_Enquete:
{ {
src = 'img/bookshelf/icon_05.jpg'; src = 'img/bookshelf/icon_05.jpg';
break; break;
} }
case ContentTypeKeys.Type_Html: case COMMON.ContentTypeKeys.Type_Html:
{ {
src = 'img/bookshelf/icon_05.jpg'; src = 'img/bookshelf/icon_05.jpg';
break; break;
} }
case ContentTypeKeys.Type_Image: case COMMON.ContentTypeKeys.Type_Image:
{ {
src = 'img/bookshelf/icon_02.jpg'; src = 'img/bookshelf/icon_02.jpg';
break; break;
} }
case ContentTypeKeys.Type_Music: case COMMON.ContentTypeKeys.Type_Music:
{ {
src = 'img/bookshelf/icon_06.jpg'; src = 'img/bookshelf/icon_06.jpg';
break; break;
} }
case ContentTypeKeys.Type_NoFile: case COMMON.ContentTypeKeys.Type_NoFile:
{ {
src = 'img/bookshelf/icon_07.png'; src = 'img/bookshelf/icon_07.png';
break; break;
} }
case ContentTypeKeys.Type_Others: case COMMON.ContentTypeKeys.Type_Others:
{ {
src = 'img/bookshelf/icon_03.jpg'; src = 'img/bookshelf/icon_03.jpg';
break; break;
} }
case ContentTypeKeys.Type_Video: case COMMON.ContentTypeKeys.Type_Video:
{ {
src = 'img/bookshelf/icon_04.jpg'; src = 'img/bookshelf/icon_04.jpg';
break; break;
} }
case ContentTypeKeys.Type_Link: case COMMON.ContentTypeKeys.Type_Link:
{ {
src = 'img/bookshelf/icon_08.png'; src = 'img/bookshelf/icon_08.png';
break; break;
...@@ -1136,25 +1136,25 @@ HEADER.viewLinkContentById = function(contentId){ ...@@ -1136,25 +1136,25 @@ HEADER.viewLinkContentById = function(contentId){
HEADER.getThumbnailForOtherType = function(contentType){ HEADER.getThumbnailForOtherType = function(contentType){
var src = ''; var src = '';
if(contentType == ContentTypeKeys.Type_Image){ if(contentType == COMMON.ContentTypeKeys.Type_Image){
src = COMMON.ThumbnailForOtherType.Thumbnail_ImageType; src = COMMON.ThumbnailForOtherType.Thumbnail_ImageType;
} }
else if(contentType == ContentTypeKeys.Type_Music){ else if(contentType == COMMON.ContentTypeKeys.Type_Music){
src = COMMON.ThumbnailForOtherType.Thumbnail_MusicType; src = COMMON.ThumbnailForOtherType.Thumbnail_MusicType;
} }
else if(contentType == ContentTypeKeys.Type_Video){ else if(contentType == COMMON.ContentTypeKeys.Type_Video){
src = COMMON.ThumbnailForOtherType.Thumbnail_VideoType; src = COMMON.ThumbnailForOtherType.Thumbnail_VideoType;
} }
else if(contentType == ContentTypeKeys.Type_NoFile){ else if(contentType == COMMON.ContentTypeKeys.Type_NoFile){
src = COMMON.ThumbnailForOtherType.Thumbnail_NoFileType; src = COMMON.ThumbnailForOtherType.Thumbnail_NoFileType;
} }
else if(contentType == ContentTypeKeys.Type_Others){ else if(contentType == COMMON.ContentTypeKeys.Type_Others){
src = COMMON.ThumbnailForOtherType.Thumbnail_OthersType; src = COMMON.ThumbnailForOtherType.Thumbnail_OthersType;
} }
else if(contentType == ContentTypeKeys.Type_Html){ else if(contentType == COMMON.ContentTypeKeys.Type_Html){
src = COMMON.ThumbnailForOtherType.Thumbnail_HtmlType; src = COMMON.ThumbnailForOtherType.Thumbnail_HtmlType;
} }
else if(contentType == ContentTypeKeys.Type_Link){ else if(contentType == COMMON.ContentTypeKeys.Type_Link){
src = COMMON.ThumbnailForOtherType.Thumbnail_LinkType; src = COMMON.ThumbnailForOtherType.Thumbnail_LinkType;
} }
......
...@@ -42,7 +42,7 @@ var history_contentTitleKana = []; ...@@ -42,7 +42,7 @@ var history_contentTitleKana = [];
$(document).ready(function(){ $(document).ready(function(){
if (!avwCheckLogin(ScreenIds.Login)){ if (!avwCheckLogin(COMMON.ScreenIds.Login)){
return; return;
} }
...@@ -50,7 +50,7 @@ $(document).ready(function(){ ...@@ -50,7 +50,7 @@ $(document).ready(function(){
document.title = I18N.i18nText('dspViewHistory') + ' | ' + I18N.i18nText('sysAppTitle'); document.title = I18N.i18nText('dspViewHistory') + ' | ' + I18N.i18nText('sysAppTitle');
ClientData.BookmarkScreen(ScreenIds.History); ClientData.BookmarkScreen(COMMON.ScreenIds.History);
if(ClientData.requirePasswordChange() != 1){ if(ClientData.requirePasswordChange() != 1){
if(ClientData.ReadingContentIds() == null || ClientData.ReadingContentIds() == 'undefined' || ClientData.ReadingContentIds().length == 0){ if(ClientData.ReadingContentIds() == null || ClientData.ReadingContentIds() == 'undefined' || ClientData.ReadingContentIds().length == 0){
...@@ -267,8 +267,8 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid) ...@@ -267,8 +267,8 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid)
//Handle language //Handle language
function handleLanguage(){ function handleLanguage(){
//if(ClientData.userInfo_language() == Consts.ConstLanguage_En || ClientData.userInfo_language() == Consts.ConstLanguage_Ko) //if(ClientData.userInfo_language() == COMMON.Consts.ConstLanguage_En || ClientData.userInfo_language() == COMMON.Consts.ConstLanguage_Ko)
if (getCurrentLanguage() == Consts.ConstLanguage_En || getCurrentLanguage() == Consts.ConstLanguage_Ko) if (getCurrentLanguage() == COMMON.Consts.ConstLanguage_En || getCurrentLanguage() == COMMON.Consts.ConstLanguage_Ko)
{ {
$('#control-sort-titlekana').css('display','none'); $('#control-sort-titlekana').css('display','none');
$('#control-sort-titlekana-off').css('display','none'); $('#control-sort-titlekana-off').css('display','none');
...@@ -281,10 +281,10 @@ function handleLanguage(){ ...@@ -281,10 +281,10 @@ function handleLanguage(){
var typeSort = ClientData.searchCond_sortType(); var typeSort = ClientData.searchCond_sortType();
var orderSort = ClientData.searchCond_sortOrder(); var orderSort = ClientData.searchCond_sortOrder();
HEADER.setStatusSort('#'+$('#menu_sort li.current a').attr('id'),orderSort == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#'+$('#menu_sort li.current a').attr('id'),orderSort == COMMON.Consts.ConstOrderSetting_Asc);
// if (typeSort == 2) { // if (typeSort == 2) {
// if (orderSort == Consts.ConstOrderSetting_Asc) { // if (orderSort == COMMON.Consts.ConstOrderSetting_Asc) {
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#titlekana-sorttype').html('▲'); // $('#titlekana-sorttype').html('▲');
// $('#titlekana-sorttype').css('width', '12px'); // $('#titlekana-sorttype').css('width', '12px');
...@@ -459,10 +459,10 @@ function sortByTitleFunction(){ ...@@ -459,10 +459,10 @@ function sortByTitleFunction(){
var genreId = ClientData.searchCond_genreId(); var genreId = ClientData.searchCond_genreId();
var groupId = ClientData.searchCond_groupId(); var groupId = ClientData.searchCond_groupId();
if(sortOrder == Consts.ConstOrderSetting_Asc) if(sortOrder == COMMON.Consts.ConstOrderSetting_Asc)
{ {
if(sortType == '1'){ if(sortType == '1'){
sortOrder = Consts.ConstOrderSetting_Desc; sortOrder = COMMON.Consts.ConstOrderSetting_Desc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#title-sorttype').html('▼'); // $('#title-sorttype').html('▼');
// $('#title-sorttype').css('width', '12px'); // $('#title-sorttype').css('width', '12px');
...@@ -472,7 +472,7 @@ function sortByTitleFunction(){ ...@@ -472,7 +472,7 @@ function sortByTitleFunction(){
sortByTitleDesc(); sortByTitleDesc();
} }
else{ else{
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#title-sorttype').html('▲'); // $('#title-sorttype').html('▲');
// $('#title-sorttype').css('width', '12px'); // $('#title-sorttype').css('width', '12px');
...@@ -485,7 +485,7 @@ function sortByTitleFunction(){ ...@@ -485,7 +485,7 @@ function sortByTitleFunction(){
} }
else else
{ {
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#title-sorttype').html('▲'); // $('#title-sorttype').html('▲');
// $('#title-sorttype').css('width', '12px'); // $('#title-sorttype').css('width', '12px');
...@@ -496,7 +496,7 @@ function sortByTitleFunction(){ ...@@ -496,7 +496,7 @@ function sortByTitleFunction(){
sortByTitleAsc(); sortByTitleAsc();
} }
HEADER.setStatusSort('#control-sort-title',sortOrder == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-title',sortOrder == COMMON.Consts.ConstOrderSetting_Asc);
sortType = '1'; sortType = '1';
ClientData.searchCond_sortType(sortType); ClientData.searchCond_sortType(sortType);
...@@ -523,10 +523,10 @@ function sortByTitleKanaFunction(){ ...@@ -523,10 +523,10 @@ function sortByTitleKanaFunction(){
var genreId = ClientData.searchCond_genreId(); var genreId = ClientData.searchCond_genreId();
var groupId = ClientData.searchCond_groupId(); var groupId = ClientData.searchCond_groupId();
if(sortOrder == Consts.ConstOrderSetting_Asc) if(sortOrder == COMMON.Consts.ConstOrderSetting_Asc)
{ {
if(sortType == '2'){ if(sortType == '2'){
sortOrder = Consts.ConstOrderSetting_Desc; sortOrder = COMMON.Consts.ConstOrderSetting_Desc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#titlekana-sorttype').html('▼'); // $('#titlekana-sorttype').html('▼');
...@@ -536,7 +536,7 @@ function sortByTitleKanaFunction(){ ...@@ -536,7 +536,7 @@ function sortByTitleKanaFunction(){
sortByTitleKanaDesc(); sortByTitleKanaDesc();
} }
else{ else{
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#titlekana-sorttype').html('▲'); // $('#titlekana-sorttype').html('▲');
...@@ -549,7 +549,7 @@ function sortByTitleKanaFunction(){ ...@@ -549,7 +549,7 @@ function sortByTitleKanaFunction(){
} }
else else
{ {
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#titlekana-sorttype').html('▲'); // $('#titlekana-sorttype').html('▲');
...@@ -560,7 +560,7 @@ function sortByTitleKanaFunction(){ ...@@ -560,7 +560,7 @@ function sortByTitleKanaFunction(){
sortByTitleKanaAsc(); sortByTitleKanaAsc();
} }
HEADER.setStatusSort('#control-sort-titlekana',sortOrder == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-titlekana',sortOrder == COMMON.Consts.ConstOrderSetting_Asc);
sortType = '2'; sortType = '2';
//refresh gridview //refresh gridview
...@@ -587,10 +587,10 @@ function sortByReleaseDateFunction(){ ...@@ -587,10 +587,10 @@ function sortByReleaseDateFunction(){
var genreId = ClientData.searchCond_genreId(); var genreId = ClientData.searchCond_genreId();
var groupId = ClientData.searchCond_groupId(); var groupId = ClientData.searchCond_groupId();
if(sortOrder == Consts.ConstOrderSetting_Asc) if(sortOrder == COMMON.Consts.ConstOrderSetting_Asc)
{ {
if(sortType == '3'){ if(sortType == '3'){
sortOrder = Consts.ConstOrderSetting_Desc; sortOrder = COMMON.Consts.ConstOrderSetting_Desc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html(''); // $('#rDate-sorttype').html('');
...@@ -600,7 +600,7 @@ function sortByReleaseDateFunction(){ ...@@ -600,7 +600,7 @@ function sortByReleaseDateFunction(){
sortByPublishDateDesc(); sortByPublishDateDesc();
} }
else{ else{
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html(''); // $('#rDate-sorttype').html('');
...@@ -613,7 +613,7 @@ function sortByReleaseDateFunction(){ ...@@ -613,7 +613,7 @@ function sortByReleaseDateFunction(){
} }
else else
{ {
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html(''); // $('#rDate-sorttype').html('');
...@@ -624,7 +624,7 @@ function sortByReleaseDateFunction(){ ...@@ -624,7 +624,7 @@ function sortByReleaseDateFunction(){
sortByPublishDateAsc(); sortByPublishDateAsc();
} }
HEADER.setStatusSort('#control-sort-releasedate',sortOrder == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-releasedate',sortOrder == COMMON.Consts.ConstOrderSetting_Asc);
sortType = '3'; sortType = '3';
ClientData.searchCond_sortType(sortType); ClientData.searchCond_sortType(sortType);
...@@ -642,10 +642,10 @@ function sortByViewDateFunction(){ ...@@ -642,10 +642,10 @@ function sortByViewDateFunction(){
var sortOrder = ClientData.searchCond_sortOrder(); var sortOrder = ClientData.searchCond_sortOrder();
var sortType = ClientData.searchCond_sortType(); var sortType = ClientData.searchCond_sortType();
if(sortOrder == Consts.ConstOrderSetting_Asc) if(sortOrder == COMMON.Consts.ConstOrderSetting_Asc)
{ {
if(sortType == '4'){ if(sortType == '4'){
sortOrder = Consts.ConstOrderSetting_Desc; sortOrder = COMMON.Consts.ConstOrderSetting_Desc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html(''); // $('#rDate-sorttype').html('');
...@@ -656,7 +656,7 @@ function sortByViewDateFunction(){ ...@@ -656,7 +656,7 @@ function sortByViewDateFunction(){
sortByViewDateDesc(); sortByViewDateDesc();
} }
else{ else{
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html(''); // $('#rDate-sorttype').html('');
...@@ -670,7 +670,7 @@ function sortByViewDateFunction(){ ...@@ -670,7 +670,7 @@ function sortByViewDateFunction(){
} }
else else
{ {
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html(''); // $('#rDate-sorttype').html('');
...@@ -682,7 +682,7 @@ function sortByViewDateFunction(){ ...@@ -682,7 +682,7 @@ function sortByViewDateFunction(){
ClientData.searchCond_sortOrder(sortOrder); ClientData.searchCond_sortOrder(sortOrder);
} }
HEADER.setStatusSort('#control-sort-viewdate',sortOrder == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-viewdate',sortOrder == COMMON.Consts.ConstOrderSetting_Asc);
sortType = '4'; sortType = '4';
...@@ -716,7 +716,7 @@ function returnContentType(contentid){ ...@@ -716,7 +716,7 @@ function returnContentType(contentid){
//Check content type is pdf content //Check content type is pdf content
function isPdfContent(contentType){ function isPdfContent(contentType){
if(!(contentType == ContentTypeKeys.Type_PDF)){ if(!(contentType == COMMON.ContentTypeKeys.Type_PDF)){
return false; return false;
} }
else{ else{
...@@ -854,15 +854,15 @@ function readSubmenuFunction_callback(contentId) ...@@ -854,15 +854,15 @@ function readSubmenuFunction_callback(contentId)
//Start Function : No.12 -- Editor : Le Long -- Date : 08/02/2013 -- Summary : Check content type other for download. //Start Function : No.12 -- Editor : Le Long -- Date : 08/02/2013 -- Summary : Check content type other for download.
//For testing without other Type. //For testing without other Type.
//contentType = ContentTypeKeys.Type_Others; //contentType = COMMON.ContentTypeKeys.Type_Others;
if(contentType == ContentTypeKeys.Type_Others){ if(contentType == COMMON.ContentTypeKeys.Type_Others){
//Download content //Download content
HEADER.downloadResourceById(contentId); HEADER.downloadResourceById(contentId);
// redraw content remove new icon // redraw content remove new icon
drawEditImage(contentId); drawEditImage(contentId);
} }
else if( contentType == ContentTypeKeys.Type_Link ){ else if( contentType == COMMON.ContentTypeKeys.Type_Link ){
//link content //link content
HEADER.viewLinkContentById(contentId); HEADER.viewLinkContentById(contentId);
// redraw content remove new icon // redraw content remove new icon
...@@ -870,7 +870,7 @@ function readSubmenuFunction_callback(contentId) ...@@ -870,7 +870,7 @@ function readSubmenuFunction_callback(contentId)
} }
else{ else{
//Go to Conten view page //Go to Conten view page
avwScreenMove(ScreenIds.ContentView); avwScreenMove(COMMON.ScreenIds.ContentView);
} }
//End Function : No.12 -- Editor : Le Long -- Date : 08/02/2013 -- Summary : Check content type other for download. //End Function : No.12 -- Editor : Le Long -- Date : 08/02/2013 -- Summary : Check content type other for download.
} }
...@@ -1165,7 +1165,7 @@ function handleSortDisp(){ ...@@ -1165,7 +1165,7 @@ function handleSortDisp(){
orderSort = ClientData.searchCond_sortOrder(); orderSort = ClientData.searchCond_sortOrder();
if(typeSort == 1){ if(typeSort == 1){
// if(orderSort == Consts.ConstOrderSetting_Asc){ // if(orderSort == COMMON.Consts.ConstOrderSetting_Asc){
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#title-sorttype').html('▲'); // $('#title-sorttype').html('▲');
// $('#title-sorttype').css('width', '12px'); // $('#title-sorttype').css('width', '12px');
...@@ -1183,10 +1183,10 @@ function handleSortDisp(){ ...@@ -1183,10 +1183,10 @@ function handleSortDisp(){
// } // }
//$('#control-sort-title').addClass('active_tops'); //$('#control-sort-title').addClass('active_tops');
HEADER.setStatusSort('#control-sort-title',orderSort == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-title',orderSort == COMMON.Consts.ConstOrderSetting_Asc);
} }
else if(typeSort == 2){ else if(typeSort == 2){
// if(orderSort == Consts.ConstOrderSetting_Asc){ // if(orderSort == COMMON.Consts.ConstOrderSetting_Asc){
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#titlekana-sorttype').html('▲'); // $('#titlekana-sorttype').html('▲');
...@@ -1204,10 +1204,10 @@ function handleSortDisp(){ ...@@ -1204,10 +1204,10 @@ function handleSortDisp(){
// } // }
//$('#control-sort-titlekana').addClass('active_tops'); //$('#control-sort-titlekana').addClass('active_tops');
HEADER.setStatusSort('#control-sort-titlekana',orderSort == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-titlekana',orderSort == COMMON.Consts.ConstOrderSetting_Asc);
} }
else if(typeSort == 3){ else if(typeSort == 3){
// if(orderSort == Consts.ConstOrderSetting_Asc){ // if(orderSort == COMMON.Consts.ConstOrderSetting_Asc){
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html(''); // $('#rDate-sorttype').html('');
...@@ -1225,10 +1225,10 @@ function handleSortDisp(){ ...@@ -1225,10 +1225,10 @@ function handleSortDisp(){
// } // }
//$('#control-sort-releasedate').addClass('active_tops'); //$('#control-sort-releasedate').addClass('active_tops');
HEADER.setStatusSort('#control-sort-releasedate',orderSort == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-releasedate',orderSort == COMMON.Consts.ConstOrderSetting_Asc);
} }
else{ else{
// if(orderSort == Consts.ConstOrderSetting_Asc){ // if(orderSort == COMMON.Consts.ConstOrderSetting_Asc){
// $('#title-sorttype').html(''); // $('#title-sorttype').html('');
// $('#titlekana-sorttype').html(''); // $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html(''); // $('#rDate-sorttype').html('');
...@@ -1247,7 +1247,7 @@ function handleSortDisp(){ ...@@ -1247,7 +1247,7 @@ function handleSortDisp(){
// } // }
//$('#control-sort-viewdate').addClass('active_tops'); //$('#control-sort-viewdate').addClass('active_tops');
HEADER.setStatusSort('#control-sort-viewdate',orderSort == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-viewdate',orderSort == COMMON.Consts.ConstOrderSetting_Asc);
} }
} }
} }
......
...@@ -42,14 +42,14 @@ HOME.group_totalcontent = -1; ...@@ -42,14 +42,14 @@ HOME.group_totalcontent = -1;
//========================================================== //==========================================================
$(document).ready(function () { $(document).ready(function () {
if (!avwCheckLogin(ScreenIds.Login)) { if (!avwCheckLogin(COMMON.ScreenIds.Login)) {
return; return;
} }
document.title = I18N.i18nText('dspHome') + ' | ' + I18N.i18nText('sysAppTitle'); document.title = I18N.i18nText('dspHome') + ' | ' + I18N.i18nText('sysAppTitle');
// Set bookmark screen // Set bookmark screen
ClientData.BookmarkScreen(ScreenIds.Home); ClientData.BookmarkScreen(COMMON.ScreenIds.Home);
//Check if Force Change password //Check if Force Change password
if (ClientData.requirePasswordChange() != 1) { if (ClientData.requirePasswordChange() != 1) {
...@@ -332,7 +332,7 @@ HOME.handleTreeViewDisp = function() { ...@@ -332,7 +332,7 @@ HOME.handleTreeViewDisp = function() {
//Change Display BookShelf Function //Change Display BookShelf Function
HOME.changeDispBookShelfFunction = function() { HOME.changeDispBookShelfFunction = function() {
if (HOME.isShowBookShelf == false) { if (HOME.isShowBookShelf == false) {
//ClientData.sortOpt_viewMode(Consts.ConstDisplayMode_BookShelf); //ClientData.sortOpt_viewMode(COMMON.Consts.ConstDisplayMode_BookShelf);
HOME.isShowBookShelf = true; HOME.isShowBookShelf = true;
var recordFrom = 0; var recordFrom = 0;
...@@ -347,7 +347,7 @@ HOME.changeDispBookShelfFunction = function() { ...@@ -347,7 +347,7 @@ HOME.changeDispBookShelfFunction = function() {
$('#control-list-type').parent().addClass("list"); $('#control-list-type').parent().addClass("list");
//End : Apply new css - Editor: Long - Date : 09/03/2013 - Summary : For handle view mode icon //End : Apply new css - Editor: Long - Date : 09/03/2013 - Summary : For handle view mode icon
// if(ClientData.sortOpt_viewMode() == Consts.ConstDisplayMode_BookShelf){ // if(ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_BookShelf){
if (HOME.isShowBookShelf) { if (HOME.isShowBookShelf) {
recordFrom = HOME.DEFAULT_DISP_NUMBER_RECORD_FROM; recordFrom = HOME.DEFAULT_DISP_NUMBER_RECORD_FROM;
recordTo = HOME.returnNumberDispRecordForBookShelf() * HOME.showNextRecordClickNumber; recordTo = HOME.returnNumberDispRecordForBookShelf() * HOME.showNextRecordClickNumber;
...@@ -382,7 +382,7 @@ HOME.changeDispBookShelfFunction = function() { ...@@ -382,7 +382,7 @@ HOME.changeDispBookShelfFunction = function() {
//Change Display List Function //Change Display List Function
HOME.changeDispListFunction = function() { HOME.changeDispListFunction = function() {
if (HOME.isShowBookShelf == true) { if (HOME.isShowBookShelf == true) {
//ClientData.sortOpt_viewMode(Consts.ConstDisplayMode_List); //ClientData.sortOpt_viewMode(COMMON.Consts.ConstDisplayMode_List);
HOME.isShowBookShelf = false; HOME.isShowBookShelf = false;
var recordFrom = 0; var recordFrom = 0;
...@@ -398,7 +398,7 @@ HOME.changeDispListFunction = function() { ...@@ -398,7 +398,7 @@ HOME.changeDispListFunction = function() {
//End : Apply new css - Editor: Long - Date : 09/03/2013 - Summary : For handle view mode icon //End : Apply new css - Editor: Long - Date : 09/03/2013 - Summary : For handle view mode icon
//Check VIewmode //Check VIewmode
// if(ClientData.sortOpt_viewMode() == Consts.ConstDisplayMode_List){ // if(ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_List){
if (!HOME.isShowBookShelf) { if (!HOME.isShowBookShelf) {
recordFrom = HOME.DEFAULT_DISP_NUMBER_RECORD_FROM; recordFrom = HOME.DEFAULT_DISP_NUMBER_RECORD_FROM;
recordTo = HOME.returnNumberDispRecordForList() * HOME.showNextRecordClickNumber; recordTo = HOME.returnNumberDispRecordForList() * HOME.showNextRecordClickNumber;
...@@ -568,13 +568,13 @@ HOME.canvasClickFunction_callback = function(outputId) ...@@ -568,13 +568,13 @@ HOME.canvasClickFunction_callback = function(outputId)
ClientData.IsRefresh(false); ClientData.IsRefresh(false);
//Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : check for download content type other. //Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : check for download content type other.
if(contentType == ContentTypeKeys.Type_Others){ if(contentType == COMMON.ContentTypeKeys.Type_Others){
//Download content //Download content
HEADER.downloadResourceById(outputId); HEADER.downloadResourceById(outputId);
// redraw content remove new icon // redraw content remove new icon
HOME.drawEditImage(outputId); HOME.drawEditImage(outputId);
} }
else if( contentType == ContentTypeKeys.Type_Link ){ else if( contentType == COMMON.ContentTypeKeys.Type_Link ){
//link content //link content
HEADER.viewLinkContentById(outputId); HEADER.viewLinkContentById(outputId);
// redraw content remove new icon // redraw content remove new icon
...@@ -582,7 +582,7 @@ HOME.canvasClickFunction_callback = function(outputId) ...@@ -582,7 +582,7 @@ HOME.canvasClickFunction_callback = function(outputId)
} }
else{ else{
//Go to Conten view page //Go to Conten view page
avwScreenMove(ScreenIds.ContentView); avwScreenMove(COMMON.ScreenIds.ContentView);
} }
//Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : check for download content type other. //Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : check for download content type other.
...@@ -680,13 +680,13 @@ HOME.canvasClickFunction_callback = function(outputId) ...@@ -680,13 +680,13 @@ HOME.canvasClickFunction_callback = function(outputId)
//Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Add ContentType to Storage. //Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Add ContentType to Storage.
//For testing without other Type. //For testing without other Type.
if(contentType == ContentTypeKeys.Type_Others){ if(contentType == COMMON.ContentTypeKeys.Type_Others){
//Download content //Download content
HEADER.downloadResourceById(outputId); HEADER.downloadResourceById(outputId);
// redraw content remove new icon // redraw content remove new icon
HOME.drawEditImage(outputId); HOME.drawEditImage(outputId);
} }
else if( contentType == ContentTypeKeys.Type_Link ){ else if( contentType == COMMON.ContentTypeKeys.Type_Link ){
//link content //link content
HEADER.viewLinkContentById(outputId); HEADER.viewLinkContentById(outputId);
// redraw content remove new icon // redraw content remove new icon
...@@ -694,7 +694,7 @@ HOME.canvasClickFunction_callback = function(outputId) ...@@ -694,7 +694,7 @@ HOME.canvasClickFunction_callback = function(outputId)
} }
else{ else{
//Go to Conten view page //Go to Conten view page
avwScreenMove(ScreenIds.ContentView); avwScreenMove(COMMON.ScreenIds.ContentView);
} }
//Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Add ContentType to Storage. //Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Add ContentType to Storage.
} }
...@@ -1473,13 +1473,13 @@ HOME.readSubmenuFunction_callback = function(contentId) ...@@ -1473,13 +1473,13 @@ HOME.readSubmenuFunction_callback = function(contentId)
//Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Add ContentType to Storage. //Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Add ContentType to Storage.
//For testing without other Type. //For testing without other Type.
if(contentType == ContentTypeKeys.Type_Others){ if(contentType == COMMON.ContentTypeKeys.Type_Others){
//Download content //Download content
HEADER.downloadResourceById(contentId); HEADER.downloadResourceById(contentId);
// redraw content remove new icon // redraw content remove new icon
HOME.drawEditImage(contentId); HOME.drawEditImage(contentId);
} }
else if( contentType == ContentTypeKeys.Type_Link ){ else if( contentType == COMMON.ContentTypeKeys.Type_Link ){
//link content //link content
HEADER.viewLinkContentById(contentId); HEADER.viewLinkContentById(contentId);
// redraw content remove new icon // redraw content remove new icon
...@@ -1487,7 +1487,7 @@ HOME.readSubmenuFunction_callback = function(contentId) ...@@ -1487,7 +1487,7 @@ HOME.readSubmenuFunction_callback = function(contentId)
} }
else{ else{
//Go to Conten view page //Go to Conten view page
avwScreenMove(ScreenIds.ContentView); avwScreenMove(COMMON.ScreenIds.ContentView);
} }
//Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Add ContentType to Storage. //Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Add ContentType to Storage.
}; };
...@@ -1574,21 +1574,21 @@ HOME.sortByTitleFunction = function() { ...@@ -1574,21 +1574,21 @@ HOME.sortByTitleFunction = function() {
var genreId = ClientData.searchCond_genreId(); var genreId = ClientData.searchCond_genreId();
var groupId = ClientData.searchCond_groupId(); var groupId = ClientData.searchCond_groupId();
if (sortOrder == Consts.ConstOrderSetting_Asc) { if (sortOrder == COMMON.Consts.ConstOrderSetting_Asc) {
if (sortType == 1) { if (sortType == 1) {
sortOrder = Consts.ConstOrderSetting_Desc; sortOrder = COMMON.Consts.ConstOrderSetting_Desc;
} }
else { else {
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
} }
ClientData.searchCond_sortOrder(sortOrder); ClientData.searchCond_sortOrder(sortOrder);
} }
else { else {
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
ClientData.searchCond_sortOrder(sortOrder); ClientData.searchCond_sortOrder(sortOrder);
} }
HEADER.setStatusSort('#control-sort-title',sortOrder == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-title',sortOrder == COMMON.Consts.ConstOrderSetting_Asc);
if (recordFrom == null || recordFrom == 'undefined') { if (recordFrom == null || recordFrom == 'undefined') {
recordFrom = HOME.DEFAULT_DISP_NUMBER_RECORD_FROM; recordFrom = HOME.DEFAULT_DISP_NUMBER_RECORD_FROM;
...@@ -1631,21 +1631,21 @@ HOME.sortByTitleKanaFunction = function() { ...@@ -1631,21 +1631,21 @@ HOME.sortByTitleKanaFunction = function() {
var genreId = ClientData.searchCond_genreId(); var genreId = ClientData.searchCond_genreId();
var groupId = ClientData.searchCond_groupId(); var groupId = ClientData.searchCond_groupId();
if (sortOrder == Consts.ConstOrderSetting_Asc) { if (sortOrder == COMMON.Consts.ConstOrderSetting_Asc) {
if (sortType == 2) { if (sortType == 2) {
sortOrder = Consts.ConstOrderSetting_Desc; sortOrder = COMMON.Consts.ConstOrderSetting_Desc;
} }
else { else {
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
} }
ClientData.searchCond_sortOrder(sortOrder); ClientData.searchCond_sortOrder(sortOrder);
} }
else { else {
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
ClientData.searchCond_sortOrder(sortOrder); ClientData.searchCond_sortOrder(sortOrder);
} }
HEADER.setStatusSort('#control-sort-titlekana',sortOrder == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-titlekana',sortOrder == COMMON.Consts.ConstOrderSetting_Asc);
if (recordFrom == null || recordFrom == 'undefined') { if (recordFrom == null || recordFrom == 'undefined') {
recordFrom = HOME.DEFAULT_DISP_NUMBER_RECORD_FROM; recordFrom = HOME.DEFAULT_DISP_NUMBER_RECORD_FROM;
...@@ -1688,20 +1688,20 @@ HOME.sortByReleaseDateFunction = function() { ...@@ -1688,20 +1688,20 @@ HOME.sortByReleaseDateFunction = function() {
var genreId = ClientData.searchCond_genreId(); var genreId = ClientData.searchCond_genreId();
var groupId = ClientData.searchCond_groupId(); var groupId = ClientData.searchCond_groupId();
if (sortOrder == Consts.ConstOrderSetting_Asc) { if (sortOrder == COMMON.Consts.ConstOrderSetting_Asc) {
if (sortType == 3) { if (sortType == 3) {
sortOrder = Consts.ConstOrderSetting_Desc; sortOrder = COMMON.Consts.ConstOrderSetting_Desc;
} }
else { else {
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
} }
ClientData.searchCond_sortOrder(sortOrder); ClientData.searchCond_sortOrder(sortOrder);
} }
else { else {
sortOrder = Consts.ConstOrderSetting_Asc; sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
ClientData.searchCond_sortOrder(sortOrder); ClientData.searchCond_sortOrder(sortOrder);
} }
HEADER.setStatusSort('#control-sort-releasedate',sortOrder == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-releasedate',sortOrder == COMMON.Consts.ConstOrderSetting_Asc);
if (recordFrom == null || recordFrom == 'undefined') { if (recordFrom == null || recordFrom == 'undefined') {
recordFrom = HOME.DEFAULT_DISP_NUMBER_RECORD_FROM; recordFrom = HOME.DEFAULT_DISP_NUMBER_RECORD_FROM;
...@@ -1734,7 +1734,7 @@ HOME.sortByReleaseDateFunction = function() { ...@@ -1734,7 +1734,7 @@ HOME.sortByReleaseDateFunction = function() {
//Handle language //Handle language
HOME.handleLanguage = function() { HOME.handleLanguage = function() {
if (getCurrentLanguage() == Consts.ConstLanguage_En || getCurrentLanguage() == Consts.ConstLanguage_Ko) { if (getCurrentLanguage() == COMMON.Consts.ConstLanguage_En || getCurrentLanguage() == COMMON.Consts.ConstLanguage_Ko) {
$('#control-sort-titlekana').css('display', 'none'); $('#control-sort-titlekana').css('display', 'none');
$('#separate').css('display', 'none'); $('#separate').css('display', 'none');
$('#titlekana-sorttype').html(''); $('#titlekana-sorttype').html('');
...@@ -1746,9 +1746,9 @@ HOME.handleLanguage = function() { ...@@ -1746,9 +1746,9 @@ HOME.handleLanguage = function() {
var typeSort = ClientData.searchCond_sortType(); var typeSort = ClientData.searchCond_sortType();
var orderSort = ClientData.searchCond_sortOrder(); var orderSort = ClientData.searchCond_sortOrder();
HEADER.setStatusSort('#'+$('#menu_sort li.current a').attr('id'),orderSort == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#'+$('#menu_sort li.current a').attr('id'),orderSort == COMMON.Consts.ConstOrderSetting_Asc);
if (typeSort == 2) { if (typeSort == 2) {
if (orderSort == Consts.ConstOrderSetting_Asc) { if (orderSort == COMMON.Consts.ConstOrderSetting_Asc) {
} }
else { else {
} }
...@@ -1780,7 +1780,7 @@ HOME.renderContent = function(id, text, division, type, order, from, to, cateid, ...@@ -1780,7 +1780,7 @@ HOME.renderContent = function(id, text, division, type, order, from, to, cateid,
var outputDate = HOME.formatDeliveryDate(post.contentDeliveryDate); var outputDate = HOME.formatDeliveryDate(post.contentDeliveryDate);
if (HOME.isShowBookShelf == null) { if (HOME.isShowBookShelf == null) {
if (ClientData.sortOpt_viewMode() == Consts.ConstDisplayMode_BookShelf) { if (ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_BookShelf) {
$('#content-grid').append( $('#content-grid').append(
'<section class="sectionhomebookshelf" id="bookshelf' + post.contentId + '">' '<section class="sectionhomebookshelf" id="bookshelf' + post.contentId + '">'
+ ' <div class="cnt_section_bookshelf">' + ' <div class="cnt_section_bookshelf">'
...@@ -1802,8 +1802,8 @@ HOME.renderContent = function(id, text, division, type, order, from, to, cateid, ...@@ -1802,8 +1802,8 @@ HOME.renderContent = function(id, text, division, type, order, from, to, cateid,
HOME.getNextRecordNumForBookShelf(); HOME.getNextRecordNumForBookShelf();
} }
// else if (ClientData.sortOpt_viewMode() == Consts.ConstDisplayMode_List) { // else if (ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_List) {
else if (ClientData.sortOpt_viewMode() == Consts.ConstDisplayMode_List) { else if (ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_List) {
$('#content-grid').append( $('#content-grid').append(
'<section class="sectionhomelist">' '<section class="sectionhomelist">'
+ ' <div class="cnt_section_list">' + ' <div class="cnt_section_list">'
...@@ -1839,7 +1839,7 @@ HOME.renderContent = function(id, text, division, type, order, from, to, cateid, ...@@ -1839,7 +1839,7 @@ HOME.renderContent = function(id, text, division, type, order, from, to, cateid,
} }
} else { } else {
// if (ClientData.sortOpt_viewMode() == Consts.ConstDisplayMode_BookShelf) { // if (ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_BookShelf) {
if (HOME.isShowBookShelf) { if (HOME.isShowBookShelf) {
$('#content-grid').append( $('#content-grid').append(
'<section class="sectionhomebookshelf" id="bookshelf' + post.contentId + '">' '<section class="sectionhomebookshelf" id="bookshelf' + post.contentId + '">'
...@@ -1862,7 +1862,7 @@ HOME.renderContent = function(id, text, division, type, order, from, to, cateid, ...@@ -1862,7 +1862,7 @@ HOME.renderContent = function(id, text, division, type, order, from, to, cateid,
} }
HOME.getNextRecordNumForBookShelf(); HOME.getNextRecordNumForBookShelf();
} }
// else if (ClientData.sortOpt_viewMode() == Consts.ConstDisplayMode_List) { // else if (ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_List) {
else if (!HOME.isShowBookShelf) { else if (!HOME.isShowBookShelf) {
$('#content-grid').append( $('#content-grid').append(
'<section class="sectionhomelist">' '<section class="sectionhomelist">'
...@@ -2044,7 +2044,7 @@ HOME.returnContentType = function(contentid){ ...@@ -2044,7 +2044,7 @@ HOME.returnContentType = function(contentid){
//Check content type is pdf content //Check content type is pdf content
HOME.isPdfContent = function(contentType){ HOME.isPdfContent = function(contentType){
if(!(contentType == ContentTypeKeys.Type_PDF)){ if(!(contentType == COMMON.ContentTypeKeys.Type_PDF)){
return false; return false;
} }
else{ else{
...@@ -2439,13 +2439,13 @@ HOME.handleSortDisp = function() { ...@@ -2439,13 +2439,13 @@ HOME.handleSortDisp = function() {
orderSort = ClientData.searchCond_sortOrder(); orderSort = ClientData.searchCond_sortOrder();
if (typeSort == 1) { if (typeSort == 1) {
HEADER.setStatusSort('#control-sort-title',orderSort == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-title',orderSort == COMMON.Consts.ConstOrderSetting_Asc);
} }
else if (typeSort == 2) { else if (typeSort == 2) {
HEADER.setStatusSort('#control-sort-titlekana',orderSort == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-titlekana',orderSort == COMMON.Consts.ConstOrderSetting_Asc);
} }
else if (typeSort == 3) { else if (typeSort == 3) {
HEADER.setStatusSort('#control-sort-releasedate',orderSort == Consts.ConstOrderSetting_Asc); HEADER.setStatusSort('#control-sort-releasedate',orderSort == COMMON.Consts.ConstOrderSetting_Asc);
} }
} }
} }
...@@ -2864,7 +2864,7 @@ HOME.resetShowNextRecordCount = function() { ...@@ -2864,7 +2864,7 @@ HOME.resetShowNextRecordCount = function() {
}; };
HOME.setDefaultViewMode = function() { HOME.setDefaultViewMode = function() {
if (ClientData.sortOpt_viewMode() == Consts.ConstDisplayMode_BookShelf) { if (ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_BookShelf) {
HOME.isShowBookShelf = true; HOME.isShowBookShelf = true;
...@@ -2877,7 +2877,7 @@ HOME.setDefaultViewMode = function() { ...@@ -2877,7 +2877,7 @@ HOME.setDefaultViewMode = function() {
$('#control-list-type').parent().addClass("list"); $('#control-list-type').parent().addClass("list");
//End : Apply new css - Editor: Long - Date : 09/03/2013 - Summary : For handle view mode icon //End : Apply new css - Editor: Long - Date : 09/03/2013 - Summary : For handle view mode icon
} }
else if (ClientData.sortOpt_viewMode() == Consts.ConstDisplayMode_List) { else if (ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_List) {
HOME.isShowBookShelf = false; HOME.isShowBookShelf = false;
//Start : Apply new css - Editor: Long - Date : 09/03/2013 - Summary : For handle view mode icon //Start : Apply new css - Editor: Long - Date : 09/03/2013 - Summary : For handle view mode icon
......
...@@ -200,7 +200,7 @@ LOGIN.processLogin = function() { ...@@ -200,7 +200,7 @@ LOGIN.processLogin = function() {
LOGIN.showContentViewByOpenUrl(paramContentID); LOGIN.showContentViewByOpenUrl(paramContentID);
} else { } else {
//ホームへ移動 //ホームへ移動
avwScreenMove("abvw/" + ScreenIds.Home); avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
} }
...@@ -235,7 +235,7 @@ LOGIN.processLogin = function() { ...@@ -235,7 +235,7 @@ LOGIN.processLogin = function() {
LOGIN.showContentViewByOpenUrl(paramContentID); LOGIN.showContentViewByOpenUrl(paramContentID);
} else { } else {
//ホームへ移動 //ホームへ移動
avwScreenMove("abvw/" + ScreenIds.Home); avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
} }
...@@ -254,7 +254,7 @@ LOGIN.processLogin = function() { ...@@ -254,7 +254,7 @@ LOGIN.processLogin = function() {
LOGIN.showContentViewByOpenUrl(paramContentID); LOGIN.showContentViewByOpenUrl(paramContentID);
} else { } else {
//ホームへ移動 //ホームへ移動
avwScreenMove("abvw/" + ScreenIds.Home); avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
} }
...@@ -283,7 +283,7 @@ LOGIN.processLogin = function() { ...@@ -283,7 +283,7 @@ LOGIN.processLogin = function() {
LOGIN.showContentViewByOpenUrl(paramContentID); LOGIN.showContentViewByOpenUrl(paramContentID);
} else { } else {
//ホームへ移動 //ホームへ移動
avwScreenMove("abvw/" + ScreenIds.Home); avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
} }
...@@ -305,7 +305,7 @@ LOGIN.processLogin = function() { ...@@ -305,7 +305,7 @@ LOGIN.processLogin = function() {
LOGIN.showContentViewByOpenUrl(paramContentID); LOGIN.showContentViewByOpenUrl(paramContentID);
} else { } else {
//ホームへ移動 //ホームへ移動
avwScreenMove("abvw/" + ScreenIds.Home); avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
} }
...@@ -352,7 +352,7 @@ LOGIN.changePasswordProcess = function(){ ...@@ -352,7 +352,7 @@ LOGIN.changePasswordProcess = function(){
$('#dialog-error-message').css('display', 'none'); $('#dialog-error-message').css('display', 'none');
LOGIN.CloseChangePasswordDialog(); LOGIN.CloseChangePasswordDialog();
ClientData.userInfo_sid(ClientData.userInfo_sid_local()); ClientData.userInfo_sid(ClientData.userInfo_sid_local());
avwScreenMove("abvw/" + ScreenIds.Home); avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
else { else {
$('#dialog-error-message').html(I18N.i18nText('msgPwdOldWrong')); $('#dialog-error-message').html(I18N.i18nText('msgPwdOldWrong'));
...@@ -373,9 +373,9 @@ LOGIN.changePasswordProcess = function(){ ...@@ -373,9 +373,9 @@ LOGIN.changePasswordProcess = function(){
//Change Language Japanese //Change Language Japanese
LOGIN.changeLanguageJa = function(){ LOGIN.changeLanguageJa = function(){
changeLanguage(Consts.ConstLanguage_Ja); changeLanguage(COMMON.Consts.ConstLanguage_Ja);
document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle'); document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle');
//ClientData.userInfo_language(Consts.ConstLanguage_Ja); //ClientData.userInfo_language(COMMON.Consts.ConstLanguage_Ja);
if (LOGIN.login_errorMessage != ""){ if (LOGIN.login_errorMessage != ""){
$('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString()); $('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString());
} }
...@@ -383,9 +383,9 @@ LOGIN.changeLanguageJa = function(){ ...@@ -383,9 +383,9 @@ LOGIN.changeLanguageJa = function(){
//Change Language Korean //Change Language Korean
LOGIN.changeLanguageKo = function(){ LOGIN.changeLanguageKo = function(){
changeLanguage(Consts.ConstLanguage_Ko); changeLanguage(COMMON.Consts.ConstLanguage_Ko);
document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle'); document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle');
//ClientData.userInfo_language(Consts.ConstLanguage_Ko); //ClientData.userInfo_language(COMMON.Consts.ConstLanguage_Ko);
if (LOGIN.login_errorMessage != ""){ if (LOGIN.login_errorMessage != ""){
$('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString()); $('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString());
} }
...@@ -393,9 +393,9 @@ LOGIN.changeLanguageKo = function(){ ...@@ -393,9 +393,9 @@ LOGIN.changeLanguageKo = function(){
//Change Language English //Change Language English
LOGIN.changeLanguageEn = function(){ LOGIN.changeLanguageEn = function(){
changeLanguage(Consts.ConstLanguage_En); changeLanguage(COMMON.Consts.ConstLanguage_En);
document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle'); document.title = I18N.i18nText('dspLogin') + ' | ' + I18N.i18nText('sysAppTitle');
//ClientData.userInfo_language(Consts.ConstLanguage_En); //ClientData.userInfo_language(COMMON.Consts.ConstLanguage_En);
if (LOGIN.login_errorMessage != ""){ if (LOGIN.login_errorMessage != ""){
$('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString()); $('#main-error-message').html(AVWEB.format(I18N.i18nText('msgLoginErrWrong'), LOGIN.login_errorMessage).toString());
} }
...@@ -421,7 +421,7 @@ LOGIN.skipPassFunction = function(){ ...@@ -421,7 +421,7 @@ LOGIN.skipPassFunction = function(){
ClientData.userInfo_pwdSkipDt(date); ClientData.userInfo_pwdSkipDt(date);
ClientData.userInfo_sid(ClientData.userInfo_sid_local()); ClientData.userInfo_sid(ClientData.userInfo_sid_local());
avwScreenMove("abvw/" + ScreenIds.Home); avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
}; };
...@@ -701,11 +701,11 @@ LOGIN.initLoginAnonymousUser = function() { ...@@ -701,11 +701,11 @@ LOGIN.initLoginAnonymousUser = function() {
LOGIN.showContentViewByOpenUrl(paramContentID); LOGIN.showContentViewByOpenUrl(paramContentID);
} else { } else {
//ホームへ移動 //ホームへ移動
avwScreenMove("abvw/" + ScreenIds.Home); avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
} else { } else {
//ホームへ移動 //ホームへ移動
avwScreenMove("abvw/" + ScreenIds.Home); avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
}); });
...@@ -792,7 +792,7 @@ LOGIN.initLoginGetitsUser = function() { ...@@ -792,7 +792,7 @@ LOGIN.initLoginGetitsUser = function() {
LOGIN.showContentViewByOpenUrl(paramContentID); LOGIN.showContentViewByOpenUrl(paramContentID);
} else { } else {
//ホームへ移動 //ホームへ移動
avwScreenMove("abvw/" + ScreenIds.Home); avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
}); });
...@@ -847,7 +847,7 @@ LOGIN.showContentViewByOpenUrl = function(strContentId) { ...@@ -847,7 +847,7 @@ LOGIN.showContentViewByOpenUrl = function(strContentId) {
ClientData.contentInfo_contentId(strContentId); ClientData.contentInfo_contentId(strContentId);
//コンテツタイプ判定 //コンテツタイプ判定
contentType = data.contentData.contentType; contentType = data.contentData.contentType;
if(contentType == ContentTypeKeys.Type_Others){ if(contentType == COMMON.ContentTypeKeys.Type_Others){
//Download content //Download content
HEADER.downloadResourceById(strContentId); HEADER.downloadResourceById(strContentId);
// redraw content remove new icon // redraw content remove new icon
...@@ -870,13 +870,13 @@ LOGIN.showContentViewByOpenUrl = function(strContentId) { ...@@ -870,13 +870,13 @@ LOGIN.showContentViewByOpenUrl = function(strContentId) {
LOGIN.alertMessageCancelFunction_callback(); LOGIN.alertMessageCancelFunction_callback();
} }
); );
//avwScreenMove("abvw/" + ScreenIds.ContentView); //avwScreenMove("abvw/" + COMMON.ScreenIds.ContentView);
} }
}, },
function (xmlHttpRequest, txtStatus, errorThrown) { function (xmlHttpRequest, txtStatus, errorThrown) {
//見つからないかエラーなのでホームに移動 //見つからないかエラーなのでホームに移動
avwScreenMove("abvw/" + ScreenIds.Home); avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
} }
); );
...@@ -884,11 +884,11 @@ LOGIN.showContentViewByOpenUrl = function(strContentId) { ...@@ -884,11 +884,11 @@ LOGIN.showContentViewByOpenUrl = function(strContentId) {
//警告表示時のOK処理 //警告表示時のOK処理
LOGIN.alertMessageOkFunction_callback = function(){ LOGIN.alertMessageOkFunction_callback = function(){
avwScreenMove("abvw/" + ScreenIds.ContentView); avwScreenMove("abvw/" + COMMON.ScreenIds.ContentView);
}; };
//警告表示時のキャンセル処理 //警告表示時のキャンセル処理
LOGIN.alertMessageCancelFunction_callback = function(){ LOGIN.alertMessageCancelFunction_callback = function(){
avwScreenMove("abvw/" + ScreenIds.Home); avwScreenMove("abvw/" + COMMON.ScreenIds.Home);
}; };
//Get param url //Get param url
......
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
// Init function of page // Init function of page
$(document).ready(function () { $(document).ready(function () {
if (!avwCheckLogin(ScreenIds.Login)) return; if (!avwCheckLogin(COMMON.ScreenIds.Login)) return;
COMMON.ToogleLogoutNortice(); COMMON.ToogleLogoutNortice();
COMMON.LockScreen(); COMMON.LockScreen();
document.title = I18N.i18nText('dspSetting') + ' | ' + I18N.i18nText('sysAppTitle'); document.title = I18N.i18nText('dspSetting') + ' | ' + I18N.i18nText('sysAppTitle');
// Set bookmark screen // Set bookmark screen
ClientData.BookmarkScreen(ScreenIds.Setting); ClientData.BookmarkScreen(COMMON.ScreenIds.Setting);
InitScreen(); InitScreen();
...@@ -600,10 +600,10 @@ function dspSave_Click(e) { ...@@ -600,10 +600,10 @@ function dspSave_Click(e) {
// 最初の画面を選択 // 最初の画面を選択
if ($("#rdoOpt001").attr('checked') == 'checked') { if ($("#rdoOpt001").attr('checked') == 'checked') {
ClientData.sortOpt_viewMode(Consts.ConstDisplayMode_BookShelf); // Bookshelf ClientData.sortOpt_viewMode(COMMON.Consts.ConstDisplayMode_BookShelf); // Bookshelf
} }
else { else {
ClientData.sortOpt_viewMode(Consts.ConstDisplayMode_List); // List ClientData.sortOpt_viewMode(COMMON.Consts.ConstDisplayMode_List); // List
} }
// 動画、音楽繰り返し // 動画、音楽繰り返し
if ($("#chkOpt002").attr('checked') == 'checked') { if ($("#chkOpt002").attr('checked') == 'checked') {
...@@ -930,7 +930,7 @@ function avwCmsApi_passwordChange_success(data) { ...@@ -930,7 +930,7 @@ function avwCmsApi_passwordChange_success(data) {
var msgError = $('#dialog-error-message'); var msgError = $('#dialog-error-message');
if (data.result != undefined && data.result != null) { if (data.result != undefined && data.result != null) {
if (data.result != Consts.ConstAPI_SUCCESS) { if (data.result != COMMON.Consts.ConstAPI_SUCCESS) {
/* show error messages */ /* show error messages */
//$().toastmessage({ position: 'middle-center' }); //$().toastmessage({ position: 'middle-center' });
//$().toastmessage('showToast', { //$().toastmessage('showToast', {
...@@ -1085,7 +1085,7 @@ function InitScreen() { ...@@ -1085,7 +1085,7 @@ function InitScreen() {
// 最初の画面を選択 // 最初の画面を選択
if (ClientData.sortOpt_viewMode() == Consts.ConstDisplayMode_List) { if (ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_List) {
$("#rdoOpt0011").attr('checked', 'checked'); $("#rdoOpt0011").attr('checked', 'checked');
} }
else { else {
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
新着メッセージがあります!!! 新着メッセージがあります!!!
</div> </div>
<div class="cnt_header"> <div class="cnt_header">
<a class="logo" href="javascript:void(0);" onclick="avwScreenMove(ScreenIds.Home)"> </a> <a class="logo" href="javascript:void(0);" onclick="avwScreenMove(COMMON.ScreenIds.Home)"> </a>
<div class="menu_language"> <div class="menu_language">
<div class="clearfix"> <div class="clearfix">
<ul class="floatL"> <ul class="floatL">
......
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