diff --git a/dreditor.user.js b/dreditor.user.js index 0038df0..1b5dddb 100644 --- a/dreditor.user.js +++ b/dreditor.user.js @@ -2721,16 +2721,16 @@ Drupal.behaviors.dreditorIssueClone = function (context) { $('#comment-form:has(#edit-category)', context).once('dreditor-clone-button', function () { var $form = $(this); // Attach a button. - var $button = $(''); - $button.prependTo($('#project-issue-summary-links')); + var $button = $('
  • '); + $button.appendTo($('#tabs ul')); $button.bind('click.dreditor-clone', function () { // Open a new window. var project = /[^/]*$/.exec($('div.breadcrumb').find('a').attr('href'))[0]; var w = window.open('//drupal.org/node/add/project-issue/' + project + '#edit-rid-wrapper', '_blank'); - w.onload = function() { - $(w).ready(function() { - setTimeout(function() { + w.onload = function () { + $(w).ready(function () { + setTimeout(function () { var $doc = $(w.document); $doc.find('#edit-rid').val($form.find('#edit-project-info-rid').val()); $doc.find('#edit-component').val($form.find('#edit-project-info-component').val());