From 8ed39380e5f423d0acb3d1d76ee02674d89b37ce Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 5 Jun 2016 15:52:55 +0800 Subject: [PATCH] modify tips in setting page --- app/scripts/directives/setting.js | 6 ++++++ app/views/setting.html | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/scripts/directives/setting.js b/app/scripts/directives/setting.js index fd4e43b..3735d66 100644 --- a/app/scripts/directives/setting.js +++ b/app/scripts/directives/setting.js @@ -126,6 +126,12 @@ }, function (value) { scope.optionValue = value; }); + + scope.$watch(function () { + return scope.option; + }, function (value) { + angular.element('[data-toggle="popover"]').popover(); + }); } }; }]); diff --git a/app/views/setting.html b/app/views/setting.html index ec8825f..3ce500b 100644 --- a/app/views/setting.html +++ b/app/views/setting.html @@ -2,8 +2,8 @@
- +