Merlijn van Deen has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/110702

Change subject: Add Upload to Gerrit button to attachments
......................................................................

Add Upload to Gerrit button to attachments

Change-Id: I4742330a7b030fa004251305998adc3e76a52e51
---
M wikimedia-showbug.user.js
1 file changed, 10 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/bugzilla/triagescripts 
refs/changes/02/110702/1

diff --git a/wikimedia-showbug.user.js b/wikimedia-showbug.user.js
index b602ae2..ebdfbcc 100644
--- a/wikimedia-showbug.user.js
+++ b/wikimedia-showbug.user.js
@@ -4,6 +4,7 @@
 // @author             Andre Klapper <[email protected]>
 // @version            2013-11-19
 // @include            https://bugzilla.wikimedia.org/show_bug.cgi?id=*
+// @require            
https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
 // @grant              none
 // @copyright          (C) Copyright Control by the authors, 2007 and later.
 // @license            The contents of this file are dual-licensed under the 
Mozilla Public License 2.0 (MPL-2.0)
@@ -1262,3 +1263,12 @@
 if (addselfcc_checkbox != null) {
   addselfcc_checkbox.checked = false;
 }
+
+/*****************************************************/
+/* Add 'upload to gerrit' button next to attachments */
+/*****************************************************/
+$('#attachment_table').find('a[href*="edit"]').after(
+       function(id) {
+               return '<form method="POST" 
action="https://tools.wmflabs.org/gerrit-patch-uploader/bugzilla/fromurl";><input
 type="hidden" name="url" value="' + this.href + '"><input type="submit" 
value="upload to gerrit"></form>';
+       }
+)

-- 
To view, visit https://gerrit.wikimedia.org/r/110702
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4742330a7b030fa004251305998adc3e76a52e51
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/bugzilla/triagescripts
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to