X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=js%2Fjquery%2Fjquery.crmProfileSelector.js;h=7008da85a22b840e1a1827b47d08daf5f464695f;hb=192e8d1a947814993aa699e47ac1669ac17b1045;hp=3c09e7f4608ed1382b8fd5122e7fad3f0eba4ea4;hpb=ca5bec87585757261df111b0ba58a4c236ac2cf8;p=civicrm-core.git diff --git a/js/jquery/jquery.crmProfileSelector.js b/js/jquery/jquery.crmProfileSelector.js index 3c09e7f460..7008da85a2 100644 --- a/js/jquery/jquery.crmProfileSelector.js +++ b/js/jquery/jquery.crmProfileSelector.js @@ -1,4 +1,4 @@ -(function($) { +(function($, _) { var ufGroupCollection = new CRM.UF.UFGroupCollection(_.sortBy(CRM.initialProfileList.values, 'title')); //var ufGroupCollection = new CRM.UF.UFGroupCollection(CRM.initialProfileList.values, { // comparator: 'title' // no point, this doesn't work with subcollections @@ -45,7 +45,7 @@ }); view.on('change:ufGroupId', function() { $(select).val(view.getUfGroupId()).change(); - }) + }); view.render(); $(select).after(view.el); setTimeout(function() { @@ -63,4 +63,4 @@ }); }); -})(cj); +})(CRM.$, CRM._);