This commit is contained in:
Liang Ding 2014-11-05 21:31:19 +08:00
parent 7652d9d459
commit 475e5df0dc
3 changed files with 9 additions and 3 deletions

View File

@ -6,7 +6,7 @@
"ShellChannel": "ws://{IP}:7070",
"SessionChannel": "ws://{IP}:7070",
"HTTPSessionMaxAge": 86400,
"StaticResourceVersion": "201411041800",
"StaticResourceVersion": "201411052200",
"MaxProcs": 4,
"RuntimeMode": "dev",
"Pwd": "{pwd}",

View File

@ -68,7 +68,7 @@ func GetFiles(w http.ResponseWriter, r *http.Request) {
// construct Go API node
apiPath := runtime.GOROOT() + conf.PathSeparator + "src" + conf.PathSeparator + "pkg"
apiNode := FileNode{Name: "Go API", Path: apiPath, FileNodes: []*FileNode{}}
apiNode := FileNode{Name: "Go API", Title: apiPath, Path: apiPath, FileNodes: []*FileNode{}}
goapiBuildOKSignal := make(chan bool)
go func() {
@ -270,7 +270,7 @@ func walk(path string, node *FileNode) {
fio, _ := os.Lstat(fpath)
child := FileNode{Name: filename, Path: fpath, FileNodes: []*FileNode{}}
child := FileNode{Name: filename, Title: fpath, Path: fpath, FileNodes: []*FileNode{}}
node.FileNodes = append(node.FileNodes, &child)
if nil == fio {

View File

@ -99,7 +99,13 @@ var tree = {
var dirRMenu = $("#dirRMenu");
var fileRMenu = $("#fileRMenu");
var setting = {
data: {
key: {
title: "title"
}
},
view: {
showTitle: true,
selectedMulti: false
},
callback: {