Project

General

Profile

« Previous | Next » 

Revision 5666

refresh the other trees with active domain when selection is made.
TODO: remember last selected node in the tree and open the tree to that node

View differences:

lib/style/skins/semtools/index.jsp
102 102
						},
103 103
						//"core" : { "initially_open" : [ selectedNodeId ] },
104 104
						"search" : { "case_insensitive" : true },
105
						"plugins" : [ "themes", "html_data", "ui", "cookies", "search" ]
105
						"plugins" : [ 
106
							"themes", 
107
							"html_data", 
108
							"ui", 
109
							"cookies", 
110
							"search" ]
106 111
					});
107 112
			});
108 113

  
......
128 133
					}
129 134
				});	
130 135

  
131
			// TODO: try to select the original node after refresh with active domain
132
			//$("#" + divId).jstree("open_node", $(selectedNode));
133
			//$("#" + divId).jstree("select_node", $(selectedNode));
136
			// TODO: make this work
137
			// open to the node
138
			$("#" + divId).jstree("open_node", $(selectedNode));
139
			// select the original node 
140
			$("#" + divId).jstree("select_node", $(selectedNode));
134 141
		});
135 142
}
136 143
/**
......
218 225
	doSearch($("#searchForm").get(0));
219 226
	
220 227
	// refresh the other trees for active domain after this filtering action
221
	// TODO actually do the active domain filtering when selection is made
222
	//initialize($(parent).children("div"));
228
	initialize($(parent).children("div"));
223 229
}
224 230
function doSearch(formObj) {
225 231
	// set the hidden parameters based on the current state of the form

Also available in: Unified diff