This commit is contained in:
parent
3eadc12b44
commit
23823cb114
|
@ -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: '<textarea id="editor' + id + '"></textarea>'
|
||||
});
|
||||
|
||||
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;
|
||||
|
|
|
@ -141,19 +141,19 @@
|
|||
<span class="fn-right ft-small">Ctrl-F</span>
|
||||
</li>
|
||||
<li class="hr"></li>
|
||||
<li onclick="alert('Dev In Progress')">
|
||||
<li class="find" onclick="alert('Dev In Progress')">
|
||||
<span>{{.i18n.find}}</span>
|
||||
</li>
|
||||
<li onclick="alert('Dev In Progress')">
|
||||
<li class="find-next" onclick="alert('Dev In Progress')">
|
||||
<span>{{.i18n.find_next}}</span>
|
||||
</li>
|
||||
<li onclick="alert('Dev In Progress')">
|
||||
<li class="find-previous" onclick="alert('Dev In Progress')">
|
||||
<span>{{.i18n.find_previous}}</span>
|
||||
</li>
|
||||
<li onclick="alert('Dev In Progress')">
|
||||
<li class="replace" onclick="alert('Dev In Progress')">
|
||||
<span>{{.i18n.replace}}</span>
|
||||
</li>
|
||||
<li onclick="alert('Dev In Progress')">
|
||||
<li class="replace-all" onclick="alert('Dev In Progress')">
|
||||
<span>{{.i18n.replace_all}}</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue