diff --git a/dreditor.user.js b/dreditor.user.js index 2df266e..30d9926 100644 --- a/dreditor.user.js +++ b/dreditor.user.js @@ -1553,58 +1553,11 @@ Drupal.behaviors.dreditorIssueSummary = function (context) { /** * Adds a button to insert the issue summary template. */ -Drupal.behaviors.dreditorIssueSummaryTemplate = function (context) { +Drupal.behaviors.dreditorIssueSummaryTemplate = function() { + "use strict"; - // Show a warning on the bare issue summary template edit page. - if (!(location.href.search('node/1326662/edit') === -1)) { - $('body.logged-in.page-node #content').once('dreditorIssueTemplate', function () { - var $content = $(this).hide(); - var $warning = $('
') - .html('WARNING: editing this page affects the Dreditor project. A new window will appear before actually saving this page so you can automatically file an issue to notify the project of this change.') - .css({ - color: '#ff0000', - fontSize: '20px', - lineHeight: '1.25em', - marginBottom: '1em' - }) - .appendTo($content.parent()); - $('