Aklapper has submitted this change and it was merged. 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(-) Approvals: Aklapper: Verified; Looks good to me, approved 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 <ak...@gmx.net> // @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: merged Gerrit-Change-Id: I4742330a7b030fa004251305998adc3e76a52e51 Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/bugzilla/triagescripts Gerrit-Branch: master Gerrit-Owner: Merlijn van Deen <valhall...@arctus.nl> Gerrit-Reviewer: Aklapper <aklap...@wikimedia.org> Gerrit-Reviewer: Merlijn van Deen <valhall...@arctus.nl> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits