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:
869a098
)
Fix js error
author
Coleman Watts
<coleman@civicrm.org>
Thu, 4 Dec 2014 16:13:13 +0000
(11:13 -0500)
committer
Coleman Watts
<coleman@civicrm.org>
Thu, 4 Dec 2014 16:13:13 +0000
(11:13 -0500)
templates/CRM/common/l10n.js.tpl
patch
|
blob
|
blame
|
history
diff --git
a/templates/CRM/common/l10n.js.tpl
b/templates/CRM/common/l10n.js.tpl
index 1fb21b2d0e93ec747aeca9babff03956f506a824..5b30ee7fa3c87d1f326c986d41b8f368370f2a46 100644
(file)
--- a/
templates/CRM/common/l10n.js.tpl
+++ b/
templates/CRM/common/l10n.js.tpl
@@
-43,7
+43,7
@@
$.fn.select2.defaults.formatLoadMore = "{ts escape='js'}Loading...{/ts}";
$.fn.select2.defaults.formatSearching = "{ts escape='js'}Searching...{/ts}";
$.fn.select2.defaults.formatInputTooShort = function() {ldelim}
- return
$(this).data('api-entity').toLowerCase() == 'contact'
? {$contactSearch} : {$otherSearch};
+ return
($(this).data('api-entity') === 'contact' || $(this).data('api-entity') === 'Contact')
? {$contactSearch} : {$otherSearch};
{rdelim};
// Localize jQuery UI