From 3040d0c54672d0fbc5a461a91b4a4568344e5ba8 Mon Sep 17 00:00:00 2001 From: yackob03 Date: Fri, 10 Jan 2014 14:29:18 -0500 Subject: [PATCH] Add user information to the olark buddy list. --- static/js/app.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/static/js/app.js b/static/js/app.js index 08aeac94b..0b881200b 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -298,6 +298,16 @@ quayApp = angular.module('quay', ['ngRoute', 'chieffancypants.loadingBar', 'rest '$created': new Date() }) + if (window.olark !== undefined) { + olark('api.visitor.getDetails', function(details) { + if (details.fullName === null) { + olark('api.visitor.updateFullName', {fullName: userResponse.username}); + } + }); + olark('api.visitor.updateEmailAddress', {emailAddress: userResponse.email}); + olark('api.chat.updateVisitorStatus', {snippet: 'username: ' + userResponse.username}); + } + CookieService.putPermanent('quay.loggedin', 'true'); }