summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/template/en
diff options
context:
space:
mode:
authorKohei Yoshino <kohei.yoshino@gmail.com>2018-06-26 22:50:45 +0200
committerDylan William Hardison <dylan@hardison.net>2018-06-26 22:50:45 +0200
commita685e15218fbe7d26015a579c96caf7de783732d (patch)
treeac5f9157392181648ef995c182efbee3c0d2fe28 /extensions/BugModal/template/en
parent02e46829b2ddd0f6109c7d81cf40c1865b01a122 (diff)
downloadbugzilla-a685e15218fbe7d26015a579c96caf7de783732d.tar.gz
bugzilla-a685e15218fbe7d26015a579c96caf7de783732d.tar.xz
Bug 1469023 - Show "new changes since (datetime)" indicator that links to unread changes/comments
Diffstat (limited to 'extensions/BugModal/template/en')
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/header.html.tmpl8
1 files changed, 2 insertions, 6 deletions
diff --git a/extensions/BugModal/template/en/default/bug_modal/header.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/header.html.tmpl
index a21e9c268..c5ae78af3 100644
--- a/extensions/BugModal/template/en/default/bug_modal/header.html.tmpl
+++ b/extensions/BugModal/template/en/default/bug_modal/header.html.tmpl
@@ -83,12 +83,7 @@
[%# update last-visited %]
[% IF user.id && user.is_involved_in_bug(bug) %]
- $(function() {
- bugzilla_ajax({
- url: 'rest/bug_user_last_visit/[% bug.id FILTER none %]',
- type: 'POST'
- });
- });
+ document.addEventListener('DOMContentLoaded', () => show_new_changes_indicator(), { once: true });
[% END %]
[%# expose useful data to js %]
@@ -101,6 +96,7 @@
is_insider: [% user.is_insider ? "true" : "false" %],
is_timetracker: [% user.is_timetracker ? "true" : "false" %],
can_tag: [% user.can_tag_comments ? "true" : "false" %],
+ timezone: '[% user.timezone.name FILTER js %]',
settings: {
quote_replies: '[% user.settings.quote_replies.value FILTER js %]',
zoom_textareas: [% user.settings.zoom_textareas.value == "on" ? "true" : "false" %],