Commit 90dd142d authored by Ryan Herbert's avatar Ryan Herbert
Browse files

database.js fix jstree hiding

since the refactor, we don't want to destroy jstree or hide it when
changing sources. We simply want to hide the file selection indicator
parent add3e7f4
......@@ -668,16 +668,9 @@ Database.prototype = {
},
toggle_jstree: function(){
var tree = $('.jstree');
var enable = tree.closest("div.jstree_container").prop('hidden');
tree.closest("div.jstree_container").prop('hidden', !enable);
if (enable) {
this.set_jstree(tree.children('div'));
} else {
$.jstree.destroy();
tree.children('div').off('select_node.jstree');
$('.filename').val(undefined);
}
var tree = $('.jstree_field');
var enable = tree.prop('hidden');
tree.prop('hidden', !enable);
},
toggle_file_source: function() {
......
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