hide note and editor when search
This commit is contained in:
@ -1280,8 +1280,10 @@ Note.searchNote = function() {
|
|||||||
// 发送请求之
|
// 发送请求之
|
||||||
// 先取消上一个
|
// 先取消上一个
|
||||||
showLoading();
|
showLoading();
|
||||||
|
Notebook.showNoteAndEditorLoading();
|
||||||
Note.lastSearch = $.post("/note/searchNote", {key: val}, function(notes) {
|
Note.lastSearch = $.post("/note/searchNote", {key: val}, function(notes) {
|
||||||
hideLoading();
|
hideLoading();
|
||||||
|
Notebook.hideNoteAndEditorLoading();
|
||||||
if(notes) {
|
if(notes) {
|
||||||
// 成功后设为空
|
// 成功后设为空
|
||||||
Note.lastSearch = null;
|
Note.lastSearch = null;
|
||||||
|
Reference in New Issue
Block a user