function fb_onlogin(){ jQuery.getJSON("/com/stylevise/controller/Facebook.cfc?method=Authenticated&returnFormat=JSON", {facebookId:FB.Connect.get_loggedInUser(), backto:escape(document.location)}, function(json){ document.location = json.GOTO; }); } function fb_logOut(){ FB.Connect.logout(logOut); } function logOut(){ document.location = '/?event=User.Logout'; } function populateSelect(el, items) { el.options.length = 0; if (items.length > 0) el.options[0] = new Option('please select', ''); $.each(items, function () { el.options[el.options.length] = new Option(this.name, this.value); }); } function filterByProperty(arr, prop, value) { return $.grep(arr, function (item) { return item[prop] == value }); } function showHelp(title, content){ $("#helpDialog").html(content); $("#helpDialog").dialog('open'); $("#helpDialog").dialog('option', 'title', title); } function addFriendRequest(userId){ $("#friendRequest").dialog({modal:true, close: function(event, ui) { this.dialog('destroy')}}); }