Commit 6c3bd41d by Kim Eunchul

#40373 【TECSS(Biz) webviewer 1.9】ジャンルツリー(グループツリー)を右側にドラッグした際、サムネイル(リスト)の位置が変わってしまう

parent a89781e1
...@@ -24,7 +24,7 @@ $(function() { ...@@ -24,7 +24,7 @@ $(function() {
var tabUnitHeight = document.getElementsByClassName("tabUnitList")[listNum].clientHeight + 60; var tabUnitHeight = document.getElementsByClassName("tabUnitList")[listNum].clientHeight + 60;
$(".tabUnit").css("height", tabUnitHeight +"px"); $(".tabUnit").css("height", tabUnitHeight +"px");
ResizeTab(); ResizeTab();
return false; return false;
}); });
...@@ -45,7 +45,7 @@ function ResizeTab() { ...@@ -45,7 +45,7 @@ function ResizeTab() {
var width = 930 - tabUnitBody; var width = 930 - tabUnitBody;
var margin = tabUnitBody - 280; var margin = tabUnitBody - 280;
articleBody[0].setAttribute("style","width:" + width + "px"); articleBody[0].style.cssText = 'width: '+ width + 'px;';
$(".cnt_section_list .text .info .pic li .iconList").css("margin-right", margin); $(".cnt_section_list .text .info .pic li .iconList").css("margin-right", margin);
$(".sankaku_left").css("margin-left", 54 + margin*0.5); $(".sankaku_left").css("margin-left", 54 + margin*0.5);
$(".sankaku_right").css("margin-left", 179 + margin*0.5); $(".sankaku_right").css("margin-left", 179 + margin*0.5);
......
...@@ -431,10 +431,6 @@ HOME.changeDispBookShelfFunction = function() { ...@@ -431,10 +431,6 @@ HOME.changeDispBookShelfFunction = function() {
// Get next record will be displayed // Get next record will be displayed
HOME.getNextRecordNumForBookShelf(); HOME.getNextRecordNumForBookShelf();
//resize tab
HOME.ResizeTab();
}; };
// Change Display List Function // Change Display List Function
...@@ -482,19 +478,16 @@ HOME.changeDispListFunction = function() { ...@@ -482,19 +478,16 @@ HOME.changeDispListFunction = function() {
// Get next record will be displayed // Get next record will be displayed
HOME.getNextRecordNumForList(); HOME.getNextRecordNumForList();
//resize tab
HOME.ResizeTab();
}; };
HOME.ResizeTab = function() { HOME.ResizeTab = function() {
var articleBody = document.getElementsByClassName("articlehome");
var articleBody = document.getElementsByClassName("articlehome");
var tabUnitBody = document.getElementsByClassName("tabUnit")[0].clientWidth; var tabUnitBody = document.getElementsByClassName("tabUnit")[0].clientWidth;
var width = 930 - tabUnitBody; var width = 930 - tabUnitBody;
var margin = tabUnitBody - 280; var margin = tabUnitBody - 280;
articleBody[0].setAttribute("style","width:" + width + "px"); articleBody[0].style.cssText = 'width: '+ width + 'px;';
$(".cnt_section_list .text .info .pic li .iconList").css("margin-right", margin); $(".cnt_section_list .text .info .pic li .iconList").css("margin-right", margin);
$(".sankaku_left").css("margin-left", 54 + margin*0.5); $(".sankaku_left").css("margin-left", 54 + margin*0.5);
$(".sankaku_right").css("margin-left", 179 + margin*0.5); $(".sankaku_right").css("margin-left", 179 + margin*0.5);
...@@ -1015,9 +1008,6 @@ HOME.AddGenre_Callback = function(selectedNode) { ...@@ -1015,9 +1008,6 @@ HOME.AddGenre_Callback = function(selectedNode) {
HOME.renderContent(id, searchText, searchDivision, sortType, sortOrder, recordOffset, recordLimit, genreId, groupId); HOME.renderContent(id, searchText, searchDivision, sortType, sortOrder, recordOffset, recordLimit, genreId, groupId);
HOME.handleSortDisp(); HOME.handleSortDisp();
//resize tab
HOME.ResizeTab();
}; };
// Get Data from Group Json // Get Data from Group Json
...@@ -1178,9 +1168,6 @@ HOME.AddGroup_Callback = function(selectedNode) { ...@@ -1178,9 +1168,6 @@ HOME.AddGroup_Callback = function(selectedNode) {
HOME.renderContent(id, searchText, searchDivision, sortType, sortOrder, recordOffset, recordLimit, genreId, groupId); HOME.renderContent(id, searchText, searchDivision, sortType, sortOrder, recordOffset, recordLimit, genreId, groupId);
HOME.handleSortDisp(); HOME.handleSortDisp();
//resize tab
HOME.ResizeTab();
}; };
// Re-render page from and total record // Re-render page from and total record
...@@ -1453,8 +1440,6 @@ HOME.showNextRecordFunction = function() { ...@@ -1453,8 +1440,6 @@ HOME.showNextRecordFunction = function() {
if (offsetPage <= totalrecord) { if (offsetPage <= totalrecord) {
HOME.renderContent(sid, searchText, searchDivision, sortType, sortOrder, offsetPage, limitPage, genreId, groupId); HOME.renderContent(sid, searchText, searchDivision, sortType, sortOrder, offsetPage, limitPage, genreId, groupId);
} }
//resize tab
HOME.ResizeTab();
}; };
// Sort By Title Function // Sort By Title Function
...@@ -1494,9 +1479,6 @@ HOME.sortByTitleFunction = function() { ...@@ -1494,9 +1479,6 @@ HOME.sortByTitleFunction = function() {
HOME.refreshGrid(); HOME.refreshGrid();
HOME.renderContent(sid, ClientData.searchCond_searchText(), ClientData.searchCond_searchDivision(), sortType, sortOrder, recordOffset, recordLimit, genreId, groupId); HOME.renderContent(sid, ClientData.searchCond_searchText(), ClientData.searchCond_searchDivision(), sortType, sortOrder, recordOffset, recordLimit, genreId, groupId);
//resize tab
HOME.ResizeTab();
}; };
// Sort By Title Kana function // Sort By Title Kana function
...@@ -1535,9 +1517,6 @@ HOME.sortByTitleKanaFunction = function() { ...@@ -1535,9 +1517,6 @@ HOME.sortByTitleKanaFunction = function() {
ClientData.searchCond_sortType(sortType); ClientData.searchCond_sortType(sortType);
HOME.renderContent(sid, ClientData.searchCond_searchText(), ClientData.searchCond_searchDivision(), sortType, sortOrder, recordOffset, recordLimit, genreId, groupId); HOME.renderContent(sid, ClientData.searchCond_searchText(), ClientData.searchCond_searchDivision(), sortType, sortOrder, recordOffset, recordLimit, genreId, groupId);
//resize tab
HOME.ResizeTab();
}; };
// Sort By Release Date // Sort By Release Date
...@@ -1576,9 +1555,6 @@ HOME.sortByReleaseDateFunction = function() { ...@@ -1576,9 +1555,6 @@ HOME.sortByReleaseDateFunction = function() {
ClientData.searchCond_sortType(sortType); ClientData.searchCond_sortType(sortType);
HOME.renderContent(sid, ClientData.searchCond_searchText(), ClientData.searchCond_searchDivision(), sortType, sortOrder, recordOffset, recordLimit, genreId, groupId); HOME.renderContent(sid, ClientData.searchCond_searchText(), ClientData.searchCond_searchDivision(), sortType, sortOrder, recordOffset, recordLimit, genreId, groupId);
//resize tab
HOME.ResizeTab();
}; };
// Handle language // Handle language
......
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