From ee9db43da26c7c6566af365ad1be3beaa9055952 Mon Sep 17 00:00:00 2001 From: YouJia Date: Fri, 24 Feb 2017 04:35:53 +0000 Subject: [PATCH] Update note.js bugfix --- public/js/app/note.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/js/app/note.js b/public/js/app/note.js index 77635e50..18a5761d 100644 --- a/public/js/app/note.js +++ b/public/js/app/note.js @@ -903,7 +903,7 @@ Note.renderChangedNote = function(changedNote) { $leftNoteNav.find(".desc").html(trimTitle(changedNote.Desc)); } if (changedNote.ImgSrc) { - $thumb = $leftNoteNav.find(".item-thumb"); + var $thumb = $leftNoteNav.find(".item-thumb"); // 有可能之前没有图片 if ($thumb.length > 0) { $thumb.find("img").attr("src", Note.fixImageSrc(changedNote.ImgSrc)); @@ -2500,8 +2500,6 @@ Note.initContextmenu = function() { this.menu.append(this.exports); } - T = this; - this.enable = function(name, ok) { this[name].enabled = ok; }