Commit d2982151 by Masaru Abe

common.jsリファクタリング

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