Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorChaoyi Zha <summermontreal@gmail.com>2017-04-15 17:40:03 +0300
committerChaoyi Zha <summermontreal@gmail.com>2017-04-15 17:40:03 +0300
commit1dfb9d021e027071bb87559d245e77ff1177e269 (patch)
tree594ad83fba236eb33c9f3551a06088878d7ced25 /public
parentc7bb9b00fa24eed9179b78e453a0c6019068927a (diff)
parentd8dd8d6b0b622365942b3910fb2044d9ac8dc7f5 (diff)
Merge branch 'master' into feature/date_bound_adj_fe_stats
Diffstat (limited to 'public')
-rw-r--r--public/css/admin.css1
-rw-r--r--public/js/SetupCtrl.js20
-rw-r--r--public/js/setup.js6
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"
- });
-});