From 52b870ac521a081c407b6e07ebba792636555b8f Mon Sep 17 00:00:00 2001 From: luchenqun Date: Sun, 15 Apr 2018 22:24:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E5=BF=98=E6=98=BE=E7=A4=BA=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E8=83=8C=E6=99=AF=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/scripts/controllers/note-controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/controllers/note-controller.js b/public/scripts/controllers/note-controller.js index 11a978f..889fdca 100644 --- a/public/scripts/controllers/note-controller.js +++ b/public/scripts/controllers/note-controller.js @@ -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();