This commit is contained in:
Van 2014-12-02 11:09:53 +08:00
parent 6efeb4b9d0
commit 5dccf1f381
2 changed files with 19 additions and 7 deletions

View File

@ -22,18 +22,30 @@
"GoFormat": "gofmt", "GoFormat": "gofmt",
"FontFamily": "Helvetica", "FontFamily": "Helvetica",
"FontSize": "13px", "FontSize": "13px",
"Theme": "default", "Theme": "black",
"Editor": { "Editor": {
"FontFamily": "Consolas, 'Courier New', monospace", "FontFamily": "Consolas, 'Courier New', monospace",
"FontSize": "13px", "FontSize": "13px",
"LineHeight": "17px", "LineHeight": "17px",
"Theme": "wide", "Theme": "erlang-dark",
"TabSize": "4" "TabSize": "4"
}, },
"LatestSessionContent": { "LatestSessionContent": {
"FileTree": [], "FileTree": [
"Files": [], "E:\\Work\\go\\src",
"CurrentFile": "" "E:\\Work\\go\\src\\code.google.com\\p",
"E:\\Work\\go\\src\\code.google.com\\p\\go.net",
"E:\\Work\\go\\src\\github.com",
"E:\\Work\\go\\src\\github.com\\88250",
"E:\\Work\\go\\src\\github.com\\88250\\gohtml",
"E:\\Work\\go\\src\\github.com\\b3log\\wide",
"E:\\Work\\go\\src\\hello",
"D:\\go\\src\\pkg"
],
"Files": [
"E:\\Work\\go\\src\\github.com\\88250\\gohtml\\consts.go"
],
"CurrentFile": "E:\\Work\\go\\src\\github.com\\88250\\gohtml\\consts.go"
} }
} }
] ]

View File

@ -91,14 +91,14 @@ var editors = {
}); });
$("#dialogCloseEditor button.discard").click(function () { $("#dialogCloseEditor button.discard").click(function () {
var i = $("#dialogCloseEditor").data("index");
editors.tabs.del(editors.data[i].id);
$("#dialogCloseEditor").dialog("close"); $("#dialogCloseEditor").dialog("close");
editors._removeAllMarker(); editors._removeAllMarker();
}); });
$("#dialogCloseEditor button.cancel").click(function () { $("#dialogCloseEditor button.cancel").click(function () {
var i = $("#dialogCloseEditor").data("index");
editors.tabs.del(editors.data[i].id);
$("#dialogCloseEditor").dialog("close"); $("#dialogCloseEditor").dialog("close");
editors._removeAllMarker(); editors._removeAllMarker();