In Bugzilla, How can i change default attachment type to "auto-detect"

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

In Bugzilla, How can i change default attachment type to "auto-detect"

Kamal Ahmed-2
please help !

Thanks,

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: In Bugzilla, How can i change default attachment type to "auto-detect"

Gervase Markham
[hidden email] wrote:
> please help !

Edit the HTML in the relevant template - to find it, search the
template/ directory for some words which appear in the template.

Gerv
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: In Bugzilla, How can i change default attachment type to "auto-detect"

Kamal Ahmed-2
I found:

<th>Content Type:</th>
      <td>
        <em>If the attachment is a patch, check the box below.</em><br>
        <input type="checkbox" id="ispatch" name="ispatch" value="1"
               onchange="setContentTypeDisabledState();">
        <label for="ispatch">patch</label><br><br>

        <em>Otherwise, choose a method for determining the content
type.</em><br>
        <input type="radio" id="autodetect"
                name="contenttypemethod" value="autodetect">
        <label for="autodetect">auto-detect</label><br>
        <input type="radio" id="list"
             name="contenttypemethod" value="list" CHECKED>
        <label for="list">select from list:</label>
        <select name="contenttypeselection"
                  onchange="this.form.contenttypemethod[1].checked =
true;">
        [% PROCESS "attachment/content-types.html.tmpl" %]
        </select><br>
        <input type="radio" id="manual"
               name="contenttypemethod" value="manual">
        <label for="manual">enter manually:</label>
        <input type="text" name="contenttypeentry" size="30"
maxlength="200"
               onchange="if (this.value)
this.form.contenttypemethod[2].checked = true;">
      </td>

Questions:

1,. How do i know that This template IS being used currently
2. How do i cahnge it.

I used the query

 find . -type f -exec grep "auto-detect" {} \; -print

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: In Bugzilla, How can i change default attachment type to "auto-detect"

Kamal Ahmed-2
it worked:

Changed to:

 <th>Content Type:</th>
      <td>
        <em>If the attachment is a patch, check the box below.</em><br>
        <input type="checkbox" id="ispatch" name="ispatch" value="1"
               onchange="setContentTypeDisabledState();">
        <label for="ispatch">patch</label><br><br>

        <em>Otherwise, choose a method for determining the content
type.</em><br>
        <input type="radio" id="autodetect"
                name="contenttypemethod" value="autodetect" CHECKED>
        <label for="autodetect">auto-detect</label><br>
        <input type="radio" id="list"
             name="contenttypemethod" value="list">
        <label for="list">select from list:</label>
        <select name="contenttypeselection"
                  onchange="this.form.contenttypemethod[1].checked =
true;">
        [% PROCESS "attachment/content-types.html.tmpl" %]
        </select><br>
        <input type="radio" id="manual"
               name="contenttypemethod" value="manual">
        <label for="manual">enter manually:</label>
        <input type="text" name="contenttypeentry" size="30"
maxlength="200"
               onchange="if (this.value)
this.form.contenttypemethod[2].checked = true;">
      </td>
    </tr>

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools