From 3a0066d38c2b0572f689d24b4afe25947b556af7 Mon Sep 17 00:00:00 2001 From: Rory Fitzpatrick Date: Thu, 25 Jul 2013 14:54:23 +0100 Subject: [PATCH] Adds current user information to notifier.js --- public/javascripts/notifier.js | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/public/javascripts/notifier.js b/public/javascripts/notifier.js index b1fde48..649b047 100644 --- a/public/javascripts/notifier.js +++ b/public/javascripts/notifier.js @@ -379,6 +379,11 @@ printStackTrace.implementation.prototype = { '{project_root}' + '{environment}' + '' + + '' + + '{user_id}' + + '{user_name}' + + '{user_email}' + + '' + '', REQUEST_VARIABLE_GROUP_XML = '<{group_name}>{inner_content}', REQUEST_VARIABLE_XML = '{value}', @@ -411,9 +416,9 @@ printStackTrace.implementation.prototype = { "rootDirectory": "{project_root}", "action": "{request_action}", - "userId": "{}", - "userName": "{}", - "userEmail": "{}", + "userId": "{user_id}", + "userName": "{user_name}", + "userEmail": "{user_email}", }, "environment": {}, //"session": "", @@ -683,6 +688,15 @@ printStackTrace.implementation.prototype = { variable: 'outputFormat', namespace: 'options' }, { + methodName: 'setCurrentUser', + method: (function (value) { + for (var key in value) { + if (value.hasOwnProperty(key)) { + Config.xmlData['user_' + key] = value[key]; + } + } + }) + }, { methodName: 'setTrackJQ', variable: 'trackJQ', namespace: 'options', -- libgit2 0.21.2