summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/js/app.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/public/js/app.js b/public/js/app.js
index 7ffcbd4a3e..cdc7d26b0d 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -960,6 +960,18 @@ function initOrganization() {
console.log("init script : organization done");
}
+function initTimeSwitch() {
+ $(".time-since[title]").on("click", function() {
+ var $this = $(this);
+
+ var title = $this.attr("title");
+ var text = $this.text();
+
+ $this.text(title);
+ $this.attr("title", text);
+ });
+}
+
(function ($) {
$(function () {
initCore();
@@ -988,6 +1000,8 @@ function initOrganization() {
if ($('#body-nav').hasClass("org-nav")) {
initOrganization();
}
+
+ initTimeSwitch();
});
})(jQuery);