From 23823cb114be85b5c987a72650f1981c722edd5b Mon Sep 17 00:00:00 2001 From: Van Date: Fri, 5 Dec 2014 18:04:29 +0800 Subject: [PATCH] . --- static/js/editors.js | 6 ++++-- views/index.html | 10 +++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/static/js/editors.js b/static/js/editors.js index 4b569d8..012b5c9 100644 --- a/static/js/editors.js +++ b/static/js/editors.js @@ -182,7 +182,8 @@ var editors = { } if (editors.data.length === 0) { // 起始页可能存在,所以用编辑器数据判断 - menu.disabled(['save-all', 'build', 'run', 'go-test', 'go-get', 'go-install']); + menu.disabled(['save-all', 'build', 'run', 'go-test', 'go-get', 'go-install', + 'find', 'find-next', 'find-previous', 'replace', 'replace-all']); $(".toolbars").hide(); } @@ -570,7 +571,8 @@ var editors = { content: '' }); - menu.undisabled(['save-all', 'close-all', 'build', 'run', 'go-test', 'go-get', 'go-install']); + menu.undisabled(['save-all', 'close-all', 'build', 'run', 'go-test', 'go-get', 'go-install', + 'find', 'find-next', 'find-previous', 'replace', 'replace-all']); var textArea = document.getElementById("editor" + id); textArea.value = data.content; diff --git a/views/index.html b/views/index.html index f413f79..9bdc26e 100644 --- a/views/index.html +++ b/views/index.html @@ -141,19 +141,19 @@ Ctrl-F
  • -
  • +
  • {{.i18n.find}}
  • -
  • +
  • {{.i18n.find_next}}
  • -
  • +
  • {{.i18n.find_previous}}
  • -
  • +
  • {{.i18n.replace}}
  • -
  • +
  • {{.i18n.replace_all}}