diff options
author | Chaoyi Zha <summermontreal@gmail.com> | 2017-04-15 17:40:03 +0300 |
---|---|---|
committer | Chaoyi Zha <summermontreal@gmail.com> | 2017-04-15 17:40:03 +0300 |
commit | 1dfb9d021e027071bb87559d245e77ff1177e269 (patch) | |
tree | 594ad83fba236eb33c9f3551a06088878d7ced25 /public | |
parent | c7bb9b00fa24eed9179b78e453a0c6019068927a (diff) | |
parent | d8dd8d6b0b622365942b3910fb2044d9ac8dc7f5 (diff) |
Merge branch 'master' into feature/date_bound_adj_fe_stats
Diffstat (limited to 'public')
-rw-r--r-- | public/css/admin.css | 1 | ||||
-rw-r--r-- | public/js/SetupCtrl.js | 20 | ||||
-rw-r--r-- | public/js/setup.js | 6 |
3 files changed, 21 insertions, 6 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 new file mode 100644 index 0000000..c5fced4 --- /dev/null +++ b/public/js/SetupCtrl.js @@ -0,0 +1,20 @@ +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({ + trigger: "hover", + placement: "right" + }); + }; + + $scope.init(); +}); diff --git a/public/js/setup.js b/public/js/setup.js deleted file mode 100644 index 924ceb2..0000000 --- a/public/js/setup.js +++ /dev/null @@ -1,6 +0,0 @@ -$(function () { - $('[data-toggle="popover"]').popover({ - trigger: "hover", - placement: "right" - }); -}); |