Commit 001bf9e4 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

database.js fix jstree file selection indicator

parent 5ea21831
......@@ -623,11 +623,12 @@ Database.prototype = {
},
}
});
var index = elem.data('index');
elem.on('select_node.jstree', function(event, data){
$('#filename').val(data.selected);
$('#file_filename_' + index).val(data.selected);
var split_file = data.selected.toString().split('/');
var file = split_file[split_file.length - 1];
$('#file_indicator').text(file);
$('#file_indicator_' + index).text(file);
});
},
......
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