projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5563fe4
)
CRM-14165 - Fix options-edit to work with multiselects
author
Coleman Watts
<coleman@civicrm.org>
Sun, 27 Apr 2014 20:47:54 +0000
(13:47 -0700)
committer
Coleman Watts
<coleman@civicrm.org>
Sun, 27 Apr 2014 20:47:54 +0000
(13:47 -0700)
js/Common.js
patch
|
blob
|
blame
|
history
diff --git
a/js/Common.js
b/js/Common.js
index fbc0defdb69ba16318b7118c248ffb6ca2cbfe28..2df825d16443ca3e0251397b43802f47812be68c 100644
(file)
--- a/
js/Common.js
+++ b/
js/Common.js
@@
-226,7
+226,7
@@
CRM.validate = CRM.validate || {
$elect = $(this),
val = $elect.val() || [],
opts = removePlaceholder ? '' : '[value!=""]';
- if (
typeof(val) !== 'array'
) {
+ if (
!$.isArray(val)
) {
val = [val];
}
$elect.find('option' + opts).remove();