From d38e1f9de29bca85a657590d8f4d8aa1e59880f1 Mon Sep 17 00:00:00 2001 From: luchenqun Date: Thu, 18 May 2017 17:12:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=B0=8F=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 | 3 +++ public/views/note.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/public/scripts/controllers/note-controller.js b/public/scripts/controllers/note-controller.js index 66bd57d..b4d2295 100644 --- a/public/scripts/controllers/note-controller.js +++ b/public/scripts/controllers/note-controller.js @@ -235,6 +235,9 @@ app.controller('noteCtr', ['$scope', '$state', '$stateParams', '$filter', '$wind } }, 100) $scope.loadBusy = false; + if ($scope.totalItems == 0) { + $(".js-note").removeClass("hidden"); + } transition(); }) .catch((err) => { diff --git a/public/views/note.html b/public/views/note.html index 52790de..7037cd0 100644 --- a/public/views/note.html +++ b/public/views/note.html @@ -1,4 +1,4 @@ -
+