/* ==================================================================== */
// イベント記述
/* ==================================================================== */
var waitTime = 0;
var default_executeId = "1";//本文表示 viewer.jsのrequestHonmonで使用
$(function () {
/* ==================================================================== */
// 右クリックを無効化
/* ==================================================================== */
/* $(document).mousedown(function (e) {
var button = e.button;
if (($.browser.msie && (button == 1 || button == 2)) ||
($.browser.mozilla && (button == 0 || button == 2)) ||
($.browser.safari && (button == 0 || button == 2)) ||
($.browser.opera)) {
return true;
} else {
alert('左・右以外のクリックは使用できません。');
return false;
}
});
*/
/* ==================================================================== */
// 初期処理
/* ==================================================================== */
$(document).ready(function(){
// viewer.js
initResizer();
$(document).bind("contextmenu",function(e){
return false;
});
containerHonmon = $('#'+honmonContainerId);
containerTocTree = $('#'+tocTreeId);
//$('#'+honmonContainerId).html('');
//$('#'+tocTreeId).html('');
containerHonmon.html('');
// containerTocTree.html('');
// if ($('#'+quoteTreeId).html() != null && $('#'+quoteTreeId).html() == '') {
// getQuotationTab();
// }
// 条項目次の取得
// if($("#init-active-tab").val() == 'jyokomokuji-tab'){
// containerTocTree.html('');
// asyncRequest('#'+tocTreeId,contextPath+'/action/get-toc-info','type=checkbox&anchor=true&inputName='+tocInputNm+'&view=viewer&valueType=StructureId', redrawTree, tocInputNm);
// }
// 本文取得
requestHonmon('', {"paging": true});
// フォントサイズ適用
// SRB改修2017 #2401 文字サイズ変更
$('body').removeClass('font-large').removeClass('font-medium').removeClass('font-small').addClass($('#'+currentFontSizeId).val());
// 初期表示タブ適用
$('#'+$('#init-active-tab').val()).click();
if( document.getElementById("hit-previous") != null) {
$("#top-search-tab").click();
}
});
});