diff options
author | Dylan William Hardison <dylan@hardison.net> | 2014-09-16 22:13:27 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2014-09-18 18:59:10 +0200 |
commit | e2a3c8d2063d60e297e19e9d08c1974b5602b8ec (patch) | |
tree | 6e831afb2de4cc786cf2d602a6adb283a0d02028 /extensions/InlineHistory | |
parent | 7b055b9f5a7f4250e6effb230bbfb1f7996b1904 (diff) | |
download | bugzilla-e2a3c8d2063d60e297e19e9d08c1974b5602b8ec.tar.gz bugzilla-e2a3c8d2063d60e297e19e9d08c1974b5602b8ec.tar.xz |
Bug 891199 - clicking on needinfo flag/text should scroll you to the comment which set the flag
Diffstat (limited to 'extensions/InlineHistory')
-rw-r--r-- | extensions/InlineHistory/web/inline-history.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/extensions/InlineHistory/web/inline-history.js b/extensions/InlineHistory/web/inline-history.js index 685798ec0..ba30cb177 100644 --- a/extensions/InlineHistory/web/inline-history.js +++ b/extensions/InlineHistory/web/inline-history.js @@ -219,6 +219,9 @@ var inline_history = { } else { this._hasBugFlags = true; } + if (flagItem[3].match(/^needinfo\?/)) { + this.lastNeedinfo = flagItem; + } // don't break as there may be multiple flag changes at once } } @@ -395,6 +398,12 @@ var inline_history = { } }, + getNeedinfoDiv: function () { + if (this.lastNeedinfo && this.lastNeedinfo[5]) { + return this.lastNeedinfo[5]; + } + }, + htmlDecode: function(v) { if (!v.match(/&/)) return v; var e = document.createElement('textarea'); |