]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 607716: The attachment content is pasted into a comment when editing an attachmen...
authorGuy Pyrzak <guy.pyrzak@gmail.com>
Thu, 28 Oct 2010 00:38:47 +0000 (02:38 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 28 Oct 2010 00:38:47 +0000 (02:38 +0200)
r=LpSolit r=mkanat a=LpSolit

template/en/default/attachment/edit.html.tmpl
template/en/default/global/textarea.html.tmpl

index d4dc476310141f3fa47cb27d3136a980379bfcd7..5d51244cc95a53cb8a3664b7224a930fde2a0c48 100644 (file)
               minrows = 10
               cols    = 80
               wrap    = 'soft'
+              disabled = 'disabled'
               defaultcontent = (attachment.contenttype.match('^text\/')) ?
                                  attachment.data.replace('(.*\n|.+)', '>$1') : undef
             %]
                   document.write('<button type="button" id="editButton" onclick="editAsComment(patchviewerinstalled);">Edit Attachment As Comment<\/button>');
                   document.write('<button type="button" id="undoEditButton" onclick="undoEditAsComment(patchviewerinstalled);" class="bz_default_hidden">Undo Edit As Comment<\/button>');
                   document.write('<button type="button" id="redoEditButton" onclick="redoEditAsComment(patchviewerinstalled);" class="bz_default_hidden">Redo Edit As Comment<\/button>');
+                  var editFrame = document.getElementById('editFrame');
+                  if (editFrame) {
+                    editFrame.disabled = false;
+                  }
                 [% END %]
                 [% IF use_patchviewer %]
                   document.write('<button type="button" id="viewDiffButton" onclick="viewDiff(attachment_id, patchviewerinstalled);">View Attachment As Diff<\/button>');
index 65dd93bdc4aaa913ebfdf2b62db01bf40f82bcef..c158615bd723afd431dadc57966622fb5b5da9ae 100644 (file)
@@ -41,6 +41,7 @@
           [% IF style %] style="[% style FILTER html %]"[% END %]
           [% IF classes %] class="[% classes FILTER html %]"[% END %]
           [% IF wrap %] wrap="[% wrap FILTER html %]"[% END %]
+          [% IF disabled %] disabled="disabled"[% END %]
           [% IF defaultrows && user.settings.zoom_textareas.value == 'off' %]
             rows="[% defaultrows FILTER html %]"
           [% ELSE %]