From 13dfecc3af61d10fb8dbdc7619fe9adaab1cc9e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B05BEE13=2E=E5=8D=A2=E9=83=B4=E7=BE=A4?= Date: Tue, 1 Sep 2020 17:54:43 +0800 Subject: [PATCH] fix bugs --- www/scripts/controllers/edit-controller.js | 4 +++- www/views/edit.html | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/www/scripts/controllers/edit-controller.js b/www/scripts/controllers/edit-controller.js index 255c33e..c1ba849 100644 --- a/www/scripts/controllers/edit-controller.js +++ b/www/scripts/controllers/edit-controller.js @@ -188,7 +188,9 @@ app.controller('editCtr', ['$scope', '$state', '$timeout', '$document', 'ngDialo }); $scope.public = (bookmark && bookmark.id) || '1'; $('.ui.checkbox.js-public').checkbox((bookmark && bookmark.public && bookmark.public == '1') ? 'set checked' : 'set unchecked') - $scope.loadTags = false; + $timeout(function () { + $scope.loadTags = false; + }, 10); }); pubSubService.subscribe('TagCtr.storeBookmark', $scope, function (event, bookmark) { diff --git a/www/views/edit.html b/www/views/edit.html index 702066d..d694544 100644 --- a/www/views/edit.html +++ b/www/views/edit.html @@ -19,8 +19,8 @@
-