projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update copyright date for 2020
[civicrm-core.git]
/
templates
/
CRM
/
Custom
/
Form
/
Field.tpl
diff --git
a/templates/CRM/Custom/Form/Field.tpl
b/templates/CRM/Custom/Form/Field.tpl
index 32723fd6b3692d612baa92c5503d687cf3658d4a..c80a0d2094ad16f0ee3d9645835d1343b0a7d06d 100644
(file)
--- a/
templates/CRM/Custom/Form/Field.tpl
+++ b/
templates/CRM/Custom/Form/Field.tpl
@@
-2,7
+2,7
@@
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-20
18
|
+ | Copyright CiviCRM LLC (c) 2004-20
20
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-190,7
+190,7
@@
var htmlType = $("[name='data_type[1]']", $form).val(),
dataType = dataTypes[$("[name='data_type[0]']", $form).val()];
var htmlType = $("[name='data_type[1]']", $form).val(),
dataType = dataTypes[$("[name='data_type[0]']", $form).val()];
- if (
((dataType === 'Int' || dataType === 'Float' || dataType === 'Money') && (htmlType === "Text"))
|| dataType === 'Date') {
+ if (
dataType === 'Int' || dataType === 'Float' || dataType === 'Money'
|| dataType === 'Date') {
if ($('#is_searchable', $form).is(':checked')) {
$("#searchByRange", $form).show();
} else {
if ($('#is_searchable', $form).is(':checked')) {
$("#searchByRange", $form).show();
} else {
@@
-200,8
+200,6
@@
$("#searchByRange", $form).hide();
}
}
$("#searchByRange", $form).hide();
}
}
- $('#is_searchable, [name^="data_type"]', $form).change(showSearchRange);
- showSearchRange();
function toggleContactRefFilter(e) {
var setSelected = $(this).attr('href');
function toggleContactRefFilter(e) {
var setSelected = $(this).attr('href');
@@
-284,6
+282,8
@@
$('[name^="data_type"]', $form).change(customOptionHtmlType);
customOptionHtmlType();
$('[name^="data_type"]', $form).change(customOptionHtmlType);
customOptionHtmlType();
+ $('#is_searchable, [name^="data_type"]', $form).change(showSearchRange);
+ showSearchRange();
});
</script>
{/literal}
});
</script>
{/literal}