diff options
author | Dylan William Hardison <dylan@hardison.net> | 2014-05-20 08:19:51 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2014-05-28 16:52:47 +0200 |
commit | b6b83df873a1509797235738e00f9e6307eca876 (patch) | |
tree | 2599c58a67bf67499d5c2d64c2854f8c7a4ef1e2 /template/en/default/bug | |
parent | 038e6854b32ae3155018188d80f306599a1e9644 (diff) | |
download | bugzilla-b6b83df873a1509797235738e00f9e6307eca876.tar.gz bugzilla-b6b83df873a1509797235738e00f9e6307eca876.tar.xz |
Bug 1000917 - Backport upstream bug 489028 to bmo/4.2 to allow user last visit searching
Diffstat (limited to 'template/en/default/bug')
-rw-r--r-- | template/en/default/bug/show-header.html.tmpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/template/en/default/bug/show-header.html.tmpl b/template/en/default/bug/show-header.html.tmpl index 9f2127d23..306407a65 100644 --- a/template/en/default/bug/show-header.html.tmpl +++ b/template/en/default/bug/show-header.html.tmpl @@ -41,6 +41,7 @@ [% yui = ['autocomplete', 'calendar'] %] [% yui.push('container') IF user.can_tag_comments %] [% javascript_urls = [ "js/util.js", "js/field.js" ] %] +[% javascript_urls.push("js/bug.js") IF user.id %] [% javascript_urls.push('js/comment-tagging.js') IF user.id && Param('comment_taggers_group') %] [% IF bug.defined %] @@ -65,6 +66,10 @@ } YAHOO.util.Event.onDOMReady(function() { initDirtyFieldTracking(); + + [% IF user.id AND user.is_involved_in_bug(bug) %] + YAHOO.bugzilla.bugUserLastVisit.update([% bug.bug_id FILTER none %]); + [% END %] }); [% javascript FILTER none %] [% END %] |