diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/bug.js | 4 | ||||
-rw-r--r-- | js/comments.js | 11 |
2 files changed, 13 insertions, 2 deletions
@@ -100,7 +100,7 @@ YAHOO.bugzilla.dupTable = { new_ds.maxCacheEntries = 3; new_ds.responseSchema = { resultsList : "result.bugs", - metaFields : { error: "error", jsonRpcId: "id" }, + metaFields : { error: "error", jsonRpcId: "id" } }; // DataSource can't understand a JSON-RPC error response, so // we have to modify the result data if we get one. @@ -125,5 +125,5 @@ YAHOO.bugzilla.dupTable = { this.dataSource, data.options); YAHOO.util.Event.on(data.summary_field, 'keyup', this.doUpdateTable, [dt, data.product_name]); - }, + } }; diff --git a/js/comments.js b/js/comments.js index 79bdae855..697cedd20 100644 --- a/js/comments.js +++ b/js/comments.js @@ -86,3 +86,14 @@ function addCollapseLink(count) { '); return false;" title="Collapse the comment.">[-]<\/a> '); } +function goto_add_comments( anchor ){ + anchor = (anchor || "add_comment"); + // we need this line to expand the comment box + document.getElementById('comment').focus(); + setTimeout(function(){ + document.location.hash = anchor; + // firefox doesn't seem to keep focus through the anchor change + document.getElementById('comment').focus(); + },10); + return false; +} |