summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/attachment.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/attachment.js b/js/attachment.js
index 6baaad50e..467dda113 100644
--- a/js/attachment.js
+++ b/js/attachment.js
@@ -93,14 +93,14 @@ function clearAttachmentFields() {
document.getElementById('data').value = '';
DataFieldHandler();
- if (element = document.getElementById('bigfile'))
+ if ((element = document.getElementById('bigfile')))
element.checked = '';
- if (element = document.getElementById('attachurl')) {
+ if ((element = document.getElementById('attachurl'))) {
element.value = '';
URLFieldHandler();
}
document.getElementById('description').value = '';
document.getElementById('ispatch').checked = '';
- if (element = document.getElementById('isprivate'))
+ if ((element = document.getElementById('isprivate')))
element.checked = '';
}