From e57771c6af51a9b535779ee94253016f687413c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Thu, 24 Jul 2014 18:47:21 +0200 Subject: [PATCH] Enable tooltips, don't know if I'll keep it but at least the code is checked in. re #79 --- templates/bootstrap/file.html | 1 + templates/bootstrap/scripts/cops.js | 4 ++++ util.js | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 templates/bootstrap/scripts/cops.js diff --git a/templates/bootstrap/file.html b/templates/bootstrap/file.html index 9c62315..14b3519 100644 --- a/templates/bootstrap/file.html +++ b/templates/bootstrap/file.html @@ -24,6 +24,7 @@ {{?}} + diff --git a/templates/bootstrap/scripts/cops.js b/templates/bootstrap/scripts/cops.js new file mode 100644 index 0000000..3383895 --- /dev/null +++ b/templates/bootstrap/scripts/cops.js @@ -0,0 +1,4 @@ +function postRefresh() +{ + $('[data-toggle="tooltip"]').tooltip(); +} \ No newline at end of file diff --git a/util.js b/util.js index 6cb1be2..fc86552 100644 --- a/util.js +++ b/util.js @@ -330,6 +330,9 @@ updatePage = function (data) { window.location = datum.navlink; } }); + + if(typeof postRefresh == 'function') + { postRefresh(); } }; navigateTo = function (url) {