Update note.js

bugfix
This commit is contained in:
YouJia
2017-02-24 04:35:53 +00:00
committed by GitHub
parent ef6355a747
commit ee9db43da2

View File

@@ -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;
}