Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
f1d9113d
Commit
f1d9113d
authored
Sep 19, 2010
by
Guy Pyrzak
Committed by
Frédéric Buclin
Sep 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 574338: When comment box is positioned at [top|bottom], include "Add…
Bug 574338: When comment box is positioned at [top|bottom], include "Add Comment" link at [bottom|top] r/a=mkanat
parent
397a12d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
comments.js
js/comments.js
+11
-0
comments.html.tmpl
template/en/default/bug/comments.html.tmpl
+13
-0
No files found.
js/comments.js
View file @
f1d9113d
...
...
@@ -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
;
}
template/en/default/bug/comments.html.tmpl
View file @
f1d9113d
...
...
@@ -65,6 +65,14 @@
[% count = count + increment %]
[% END %]
[% IF user.settings.comment_box_position.value == "before_comments" && user.id %]
<div class="bz_add_comment">
<a href="#"
onclick="return goto_add_comments();">
Add Comment</a>
</div>
[% END %]
[%# Note: this template is used in multiple places; if you use this hook,
# make sure you are aware of this fact.
#%]
...
...
@@ -78,6 +86,11 @@
return false;">Collapse All Comments</a></li>
<li><a href="#" onclick="toggle_all_comments('expand', [% comments.size %]);
return false;">Expand All Comments</a></li>
[% IF user.settings.comment_box_position.value == "after_comments" && user.id %]
<li class="bz_add_comment"><a href="#"
onclick="return goto_add_comments('bug_status_bottom');">
Add Comment</a></li>
[% END %]
</ul>
[% END %]
</td>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment