备忘显示详情背景更新

This commit is contained in:
luchenqun 2018-04-15 22:24:55 +08:00
parent dbdb185ef0
commit 52b870ac52
1 changed files with 2 additions and 2 deletions

View File

@ -270,10 +270,10 @@ app.controller('noteCtr', ['$scope', '$state', '$stateParams', '$filter', '$wind
var detail = note.detail;
$scope.notes.forEach((note) => {
note.detail = false;
$("#" + note.id).css("background", "none");
$("#" + note.id).removeClass("secondary")
})
note.detail = !detail;
$("#" + note.id).css("background", note.detail ? "#f8f8f8" : "none");
note.detail && $("#" + note.id).addClass("secondary")
}
if (flag) {
$event && $event.stopPropagation();