Hello,
We're looking for a simple way of adding an alert box whenever adding an attachment (for juridical reasons).
Once i've was given from the support a trick to fill in the description field with some text by adding the following javascript to the field's label in the field configuration:
{noformat}
<script type="text/javascript">
AJS.$(document).ready(function() {
if (AJS.$(#description) 0 .value == ) {AJS.$(#description) 0 .value = some text; }});
</script>
{noformat}
Now i've been trying to do the same for the attachment field, to no avail. So i thought maybe you could help me.
What i want is that any time you add a file to attach it to an issue, a javascript alert box should popup.
In a simple html file i would do like this:
{noformat}
<input type="file" onchange="alert('When" uploading="" attachment,="" blablabla');=""/>
{noformat}
Unfortunately i could not find where the attachment field is generated or where i should put my simple javascript code.
Do you have an idea? It would help us a lot