Commit 41fb7442 authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 272472: attachment.cgi shouldn't clobber windows.onload; patch by…

Patch for bug 272472: attachment.cgi shouldn't clobber windows.onload; patch by Christian Reis <kiko@async.com.br>, r=wurblzap, a=justdave.
parent 9219df5e
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
<script type="text/javascript"> <script type="text/javascript">
<!-- <!--
var stored_onload = window.onload;
// Enables or disables a requestee field depending on whether or not // Enables or disables a requestee field depending on whether or not
// the user is requesting the corresponding flag. // the user is requesting the corresponding flag.
function toggleRequesteeField(flagField) function toggleRequesteeField(flagField)
...@@ -59,6 +60,9 @@ ...@@ -59,6 +60,9 @@
inputElement.disabled = true; inputElement.disabled = true;
} }
} }
if (stored_onload) {
stored_onload();
}
} }
window.onload = disableRequesteeFields; window.onload = disableRequesteeFields;
// --> // -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment