static/js/ep_email.js
function getDataForUserId(formName) {
  var userId = pad.getUserId();
  var message = {};
  message.type = 'USERINFO_GET';
  message.padId = pad.getPadId();
  message.userInfo = {};
  message.userInfo.userId = userId;
  message.userInfo.formName = formName;

  pad.collabClient.sendMessage(message);
}
function getDataForUserId(formName) {
  var userId = pad.getUserId();
  var message = {};
  message.type = 'USERINFO_GET';
  message.padId = pad.getPadId();
  message.userInfo = {};
  message.userInfo.userId = userId;
  message.userInfo.formName = formName;

  pad.collabClient.sendMessage(message);
}
function getDataForUserId ( formName ) { var userId = pad . getUserId ( ) ; var message = { } ; message . type = 'USERINFO_GET' ; message . padId = pad . getPadId ( ) ; message . userInfo = { } ; message . userInfo . userId = userId ; message . userInfo . formName = formName ; pad . collabClient . sendMessage ( message ) ; }
Thanks to the userId, we can get back from the Db the options set for this user
and fill the fields with them
Thanks to the userId we can get back from the Db the options set for this user and fill the fields with them