Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 313935 Details for
Bug 454044
Where is the "Attach as result" check box in "Create Another Attachment to Certification #xxxxxx"
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch Fix:
attachment.patch (text/plain), 4.14 KB, created by
XINSUN
on 2008-08-11 10:07:26 UTC
(
hide
)
Description:
Patch Fix:
Filename:
MIME Type:
Creator:
XINSUN
Created:
2008-08-11 10:07:26 UTC
Size:
4.14 KB
patch
obsolete
>Index: template/en/default/attachment/create.html.tmpl >=================================================================== >RCS file: /cvs/qa/hwcert/template/en/default/attachment/create.html.tmpl,v >retrieving revision 1.2 >diff -u -r1.2 create.html.tmpl >--- template/en/default/attachment/create.html.tmpl 23 Jul 2007 16:57:41 -0000 1.2 >+++ template/en/default/attachment/create.html.tmpl 11 Aug 2008 09:46:30 -0000 >@@ -19,6 +19,7 @@ > # Contributor(s): Myk Melez <myk@mozilla.org> > #%] > >+[% IF canedit && !isduplicate && bug.bug_status!='CLOSED' %] > [% PROCESS global/variables.none.tmpl %] > > [%# Define strings that will serve as the title and header of this page %] >@@ -44,7 +45,6 @@ > padding-bottom: 5px; > } > " >- onload="setContentTypeDisabledState();" > nav_selected = "show" > %] > >@@ -61,7 +61,7 @@ > [% FOREACH attachment = attachments %] > [% IF ((attachment.isprivate == 0) || (Param("insidergroup") > && UserInGroup(Param("insidergroup")))) %] >- <a href="attachment.cgi?id=[% attachment.id %]&action=edit">[% attachment.id %]: [% attachment.description FILTER html %]</a><br> >+ <a href="attachment.cgi?id=[% attachment.id %]&action=view">[% attachment.id %]: [% attachment.description FILTER html %]</a><br> > [% END %] > [% END %] > [% ELSE %] >@@ -74,7 +74,16 @@ > <th>File:</th> > <td> > <em>Enter the path to the file on your computer.</em><br> >- <input type="file" name="data" size="50"> >+ <input type="file" name="data" id="data" size="50" onchange="verify_filename();"> >+ <div id="attachasresult_warning" style="display:none;" class="clearBox"> >+ <p> >+ <div class="clearBoxInner"> >+ <div class="clearBoxBody"> >+ <b class="redNote">Warning : Filename matches /rhr/</b><br> >+ Red Hat Ready (rhr2) has been deprecated, "Attach as result" has been removed. >+ </div> >+ </div> >+ </div> > </td> > </tr> > <tr> >@@ -97,6 +106,17 @@ > </td> > </tr> > <tr> >+ <th>Options:</th> >+ <td> >+ <input type="checkbox" name="attachasresult" id="attachasresult" value="true" checked>Attach as result >+ [% IF UserInGroup('hwcert_edit') %] >+ <br> >+ <input type="checkbox" name="md5sumoverride" value="false">Override md5sum check >+ [% END %] >+ </td> >+ </tr> >+ <p> >+ <tr> > <th> </th> > <td><input id="button" type="submit" value="Submit"></td> > </tr> >@@ -106,24 +126,32 @@ > > <script language="JavaScript" type="text/javascript"> > <!-- >- function setContentTypeDisabledState() >- { >- var entryform = document.entryform; >- >- var isdisabled = false; >- if (entryform.ispatch.checked) >- isdisabled = true; >- >- for (var i=0 ; i<entryform.contenttypemethod.length ; i++) >- entryform.contenttypemethod[i].disabled = isdisabled; >- >- entryform.contenttypeselection.disabled = isdisabled; >- entryform.contenttypeentry.disabled = isdisabled; >- } >+ function verify_filename() { >+ var filename= document.getElementById("data").value; >+ var rpm_pattern = /.+\.rpm$/; >+ var rhr2_pattern = /rhr/; >+ var hts_pattern = /hts/; >+ if (rpm_pattern.test(filename)) { >+ if (rhr2_pattern.test(filename)) { >+ document.getElementById("attachasresult").checked=false; >+ document.getElementById("attachasresult_warning").style.display = "block"; >+ } else if (hts_pattern.test(filename)) { >+ document.getElementById("attachasresult").checked=true; >+ document.getElementById("attachasresult_warning").style.display = "none"; >+ } else if (!rhr2_pattern.test(filename) && !hts_pattern.test(filename)) { >+ document.getElementById("attachasresult").checked=false; >+ document.getElementById("attachasresult_warning").style.display = "none"; >+ } >+ } else { >+ document.getElementById("attachasresult").checked=false; >+ document.getElementById("attachasresult_warning").style.display = "none"; >+ } >+ } > //--> > </script> > > [% PROCESS global/footer.html.tmpl %] >+[% END %] > > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 454044
:
313935