Commit 4572291a by agentec

#19124 コンテンツ閲覧のインデックスが効かない問題対応

parent e9330aa6
......@@ -293,10 +293,6 @@ function TreeNode() {
*/
};
// Add category node
function AddCategory(targetTreeView, sourceTreeNode, targetTreeNode, callbackFunction) {
var branches;
......@@ -408,7 +404,8 @@ function AddItem(targetTreeView, sourceTreeNodeItem, targetTreeNode, callbackFun
}
else {
if(sourceTreeNodeItem.ContentCount == 0){
if (callbackFunction != undefined && callbackFunction != null) {
//#19124 インデックスのページ移動が効かなくなった対応 targetTreeView.treeViewType
if (callbackFunction != undefined && callbackFunction != null && targetTreeView.treeViewType == "normal") {
scriptCallback = ' id="' + sourceTreeNodeItem.Id + '"';
}
tmpClass = JQ_TREEVIEW.CLASS_FILE_ZERO;
......@@ -423,7 +420,8 @@ function AddItem(targetTreeView, sourceTreeNodeItem, targetTreeNode, callbackFun
}
else {
if(targetTreeView.TotalCount == 0){
if (callbackFunction != undefined && callbackFunction != null) {
//#19124 インデックスのページ移動が効かなくなった対応 targetTreeView.treeViewType
if (callbackFunction != undefined && callbackFunction != null && targetTreeView.treeViewType == "normal") {
scriptCallback = ' id="' + sourceTreeNodeItem.Id + '"';
}
tmpClass = JQ_TREEVIEW.CLASS_FILE_ZERO;
......@@ -437,7 +435,8 @@ function AddItem(targetTreeView, sourceTreeNodeItem, targetTreeNode, callbackFun
}
else {
if(sourceTreeNodeItem.ContentCount == 0){
if (callbackFunction != undefined && callbackFunction != null) {
//#19124 インデックスのページ移動が効かなくなった対応 targetTreeView.treeViewType
if (callbackFunction != undefined && callbackFunction != null && targetTreeView.treeViewType == "normal") {
scriptCallback = ' id="' + sourceTreeNodeItem.Id + '"';
}
tmpClass = JQ_TREEVIEW.CLASS_FILE_ZERO;
......@@ -554,6 +553,7 @@ function TreeView() {
this.IsShowTotal = true;
this.ExpandNodes = [];
this.CategoryTagName = "span"; // Use to expand/ not expand when clicking in
this.treeViewType = "normal"; //#19124 コンテンツ閲覧のインデックスでページ移動しなくなった対応のため
this.Show = function (containerId, nodes, callbackFunctionName) {
var tree = this;
tree.Id = containerId;
......@@ -586,6 +586,7 @@ function TreeViewIndex() {
this.TotalCount = 0;
this.IsShowTotal = true;
this.CategoryTagName = "span";
this.treeViewType = "index"; //#19124 コンテンツ閲覧のインデックスでページ移動しなくなった対応のため
this.Show = function (containerId, nodes, callbackFunctionName) {
var tree = this;
tree.Id = containerId;
......
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