This commit is contained in:
Van 2014-12-03 17:03:09 +08:00
parent 42812d56fb
commit fd65b031f6
1 changed files with 5 additions and 7 deletions

View File

@ -25,13 +25,11 @@ var bottomGroup = {
$(this).focus(); $(this).focus();
}); });
$('.bottom-window-group .output .path').click(function (e) { $('.bottom-window-group .output').on('click', '.path', function (e) {
var path = $(e.target); var $path = $(this),
console.log(path.data("path")); tId = tree.getTIdByPath($path.data("path"));
console.log(path.data("line")); tree.openFile(tree.fileTree.getNodeByTId(tId),
console.log(path.data("column")); CodeMirror.Pos($path.data("line") - 1, $path.data("column") - 1));
// TODO: open editor
}); });
}, },
_initFrame: function () { _initFrame: function () {