]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 126487 - Edit attachment as comment was causing an immediate submit instead of...
authorjake%acutex.net <>
Wed, 20 Feb 2002 06:01:33 +0000 (06:01 +0000)
committerjake%acutex.net <>
Wed, 20 Feb 2002 06:01:33 +0000 (06:01 +0000)
r= bbaetz x2

template/default/attachment/edit.atml

index c9a2980b3d2d422c49228e88a779c09c45e37252..8b4f4ea781da260a40d4ecb905561b108b3274f6 100755 (executable)
           <script type="application/x-javascript" language="JavaScript">
             <!--
             if (typeof document.getElementById == "function") {
-              document.write('<button id="editButton" onclick="editAsComment();">Edit Attachment As Comment</button>');
-              document.write('<button id="undoEditButton" onclick="undoEditAsComment();" style="display: none;">Undo Edit As Comment</button>');
-              document.write('<button id="redoEditButton" onclick="redoEditAsComment();" style="display: none;">Redo Edit As Comment</button>');
+              document.write('<button type="button" id="editButton" onclick="editAsComment();">Edit Attachment As Comment</button>');
+              document.write('<button type="button" id="undoEditButton" onclick="undoEditAsComment();" style="display: none;">Undo Edit As Comment</button>');
+              document.write('<button type="button" id="redoEditButton" onclick="redoEditAsComment();" style="display: none;">Redo Edit As Comment</button>');
             }
             //-->
           </script>