diff options
author | Chaoyi Zha <summermontreal@gmail.com> | 2017-04-08 01:25:43 +0300 |
---|---|---|
committer | Chaoyi Zha <summermontreal@gmail.com> | 2017-04-08 01:25:43 +0300 |
commit | e17aeff740509cf27008bc2b88fb34b248b7bad5 (patch) | |
tree | 8f3ffc944768c1f1e00304f4f008c371f09d9947 /public | |
parent | 202f5d244de5eaeaa269ff394edbfd6bd44441e5 (diff) |
Fix API bugs and implement directive for setup tooltips
Diffstat (limited to 'public')
-rw-r--r-- | public/css/admin.css | 1 | ||||
-rw-r--r-- | public/js/SetupCtrl.js | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/public/css/admin.css b/public/css/admin.css index f33a96d..b718f20 100644 --- a/public/css/admin.css +++ b/public/css/admin.css @@ -38,6 +38,7 @@ input.api-quota { width: 9em; font-size: .85em; height: .85em; + padding-left: 0.8em; } .wrap-text { diff --git a/public/js/SetupCtrl.js b/public/js/SetupCtrl.js index ed6c8a2..c5fced4 100644 --- a/public/js/SetupCtrl.js +++ b/public/js/SetupCtrl.js @@ -1,3 +1,13 @@ +polr.directive('setupTooltip', function() { + return { + scope: { + content: '@', + }, + replace: true, + template: '<button data-content="{{ content }}" type="button" class="btn btn-xs btn-default setup-qmark" data-toggle="popover">?</button>' + } +}) + polr.controller('SetupCtrl', function($scope) { $scope.init = function () { $('[data-toggle="popover"]').popover({ |