summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/bug.js4
-rw-r--r--js/comments.js11
2 files changed, 13 insertions, 2 deletions
diff --git a/js/bug.js b/js/bug.js
index baea5125f..ca888a68f 100644
--- a/js/bug.js
+++ b/js/bug.js
@@ -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;
+}