summaryrefslogtreecommitdiff
path: root/app/Functions
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2016-01-23 21:31:53 +0000
committerGreg Roach <fisharebest@gmail.com>2016-01-23 21:31:53 +0000
commitf343289a73e89eafd47fc4cc963180c776c4c771 (patch)
treef50de6d3db993cbd3f6ef38ea64e2a2b6cf7f195 /app/Functions
parent7e62f3b3331b52bb036e7e6399e4d781afe87b86 (diff)
downloadwebtrees-f343289a73e89eafd47fc4cc963180c776c4c771.tar.gz
webtrees-f343289a73e89eafd47fc4cc963180c776c4c771.tar.bz2
webtrees-f343289a73e89eafd47fc4cc963180c776c4c771.zip
Fix #809 - delete date/place from a fact deletes the fact
Diffstat (limited to 'app/Functions')
-rw-r--r--app/Functions/FunctionsEdit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Functions/FunctionsEdit.php b/app/Functions/FunctionsEdit.php
index 52525ff3b0..7860691cf9 100644
--- a/app/Functions/FunctionsEdit.php
+++ b/app/Functions/FunctionsEdit.php
@@ -621,7 +621,7 @@ class FunctionsEdit {
if ($value) {
echo 'checked';
}
- echo ' onclick="if (this.checked) ', $element_id, '.value=\'Y\'; else ', $element_id, '.value=\'\';">';
+ echo ' onclick="document.getElementById(\'' . $element_id . '\').value = (this.checked) ? \'Y\' : \'\';">';
echo I18N::translate('yes');
}