projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CRM-20247 Add test & ensure $is_recur is assigned to the message_template.
[civicrm-core.git]
/
js
/
AlternateContactSelector.js
diff --git
a/js/AlternateContactSelector.js
b/js/AlternateContactSelector.js
index 31fc0f84216c72c81891bb63afbaa319c6b1f8c5..6098b242910ceacc705e1bf2320abeb1a7f1edbc 100644
(file)
--- a/
js/AlternateContactSelector.js
+++ b/
js/AlternateContactSelector.js
@@
-8,7
+8,13
@@
CRM.$(function($) {
.done(function (result) {
$.each(result.values, function (id, value) {
$.each(value, function (fieldname, fieldvalue) {
.done(function (result) {
$.each(result.values, function (id, value) {
$.each(value, function (fieldname, fieldvalue) {
- $('#' + fieldname).val(fieldvalue);
+ $('#' + fieldname).val(fieldvalue).change();
+ $("[name=" + fieldname + "]").val([fieldvalue]);
+ if ($.isArray(fieldvalue)) {
+ $.each(fieldvalue, function (index, val) {
+ $("#" + fieldname + "_" + val).prop('checked', true);
+ });
+ }
});
});
}
});
});
}