]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1257608 - Convert all <button> elements to CSS styled <a> links
authorDavid Lawrence <dkl@mozilla.com>
Fri, 17 Feb 2017 17:12:27 +0000 (17:12 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Fri, 17 Feb 2017 17:12:37 +0000 (17:12 +0000)
extensions/BMO/template/en/default/hook/bug_modal/edit-top_actions.html.tmpl
extensions/BugModal/template/en/default/bug_modal/activity_stream.html.tmpl
extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
extensions/BugModal/web/bug_modal.js

index a21e8a44193e4a7c411d8edfe18105f6ab170151..b096644c9d2345d8b8abb09f454b9350c01be0c0 100644 (file)
@@ -16,7 +16,6 @@
     END;
   END;
 %]
-<button type="button" class="minor button-link"
-  data-href="page.cgi?id=attachment_bounty_form.html&amp;bug_id=[% bug.id FILTER none %]">
+| <a href="page.cgi?id=attachment_bounty_form.html&amp;bug_id=[% bug.id FILTER none %]">
   [% has_bounty_attachment ? "Edit" : "Add" %] Bounty Tracking Attachment
-</button>
+</a>
index f5074dbfa5b93de3388816ef313973d6c4b69e99..f046cf904fbc3908aeab4febd950daf5d278237c 100644 (file)
@@ -7,6 +7,11 @@
   #%]
 
 <div id="comment-actions">
+  [% IF user.settings.comment_box_position.value == 'after_comments' %]
+    <button type="button" id="add-comment-btn" class="minor">Add Comment &darr;</button>
+  [% ELSE %]
+    <button type="button" id="bottom-btn" class="minor">Bottom &darr;</button>
+  [% END %]
   <button type="button" id="comment-tags-btn" style="display:none" class="minor">Tags &#9662;</button>
   <button type="button" id="view-menu-btn" class="minor">View &#9662;</button>
 </div>
index a33cc541a1b7a4204dd8556230c12334bc45ebe3..4b23df786f8d4ae4f9ff8ebe53404e6c5c907077 100644 (file)
 
 [% 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 &darr;</button>
-    [% ELSE %]
-      <button type="button" id="bottom-btn" class="minor">Bottom &darr;</button>
-    [% END %]
+    <a href="attachment.cgi?bugid=[% bug.id FILTER uri %]&amp;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>
index 25a9d1a73615a9addf2db3b82fa60422eb139d1a..cfeec2271a8fde6adb4eb1399391e32520764cb1 100644 (file)
@@ -804,13 +804,6 @@ $(function() {
             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) {