END;
END;
%]
-<button type="button" class="minor button-link"
- data-href="page.cgi?id=attachment_bounty_form.html&bug_id=[% bug.id FILTER none %]">
+| <a href="page.cgi?id=attachment_bounty_form.html&bug_id=[% bug.id FILTER none %]">
[% has_bounty_attachment ? "Edit" : "Add" %] Bounty Tracking Attachment
-</button>
+</a>
#%]
<div id="comment-actions">
+ [% IF user.settings.comment_box_position.value == 'after_comments' %]
+ <button type="button" id="add-comment-btn" class="minor">Add Comment ↓</button>
+ [% ELSE %]
+ <button type="button" id="bottom-btn" class="minor">Bottom ↓</button>
+ [% END %]
<button type="button" id="comment-tags-btn" style="display:none" class="minor">Tags ▾</button>
<button type="button" id="view-menu-btn" class="minor">View ▾</button>
</div>
[% IF user.id %]
<div id="top-actions">
- <button type="button" id="attachments-add-btn" class="minor">Attach File</button>
- [% IF user.settings.comment_box_position.value == 'after_comments' %]
- <button type="button" id="add-comment-btn" class="minor">Add Comment ↓</button>
- [% ELSE %]
- <button type="button" id="bottom-btn" class="minor">Bottom ↓</button>
- [% END %]
+ <a href="attachment.cgi?bugid=[% bug.id FILTER uri %]&action=enter" id="attachments-add-link">Attach File</a>
[%+ Hook.process('top_actions') %]
<button type="submit" class="save-btn major" id="top-save-btn" style="display:none">Save Changes</button>
</div>
tracking_flag_change(event.target);
});
- // add attachments
- $('#attachments-add-btn')
- .click(function(event) {
- event.preventDefault();
- window.location.href = 'attachment.cgi?bugid=' + BUGZILLA.bug_id + '&action=enter';
- });
-
// take button
$('.take-btn')
.click(function(event) {