ask anonymous, first-time users to set their name when they first join a pad

This commit is contained in:
Yann Flory
2016-10-21 15:17:15 +02:00
parent 5d9b81ab2f
commit 1e003b13a8
6 changed files with 26 additions and 17 deletions

View File

@@ -719,9 +719,8 @@ define([
title: Messages.userButton + '\n' + Messages.userButtonTitle
}).html('<span class="fa fa-user" style="font-family:FontAwesome;"></span>');
if (data && typeof data.lastName !== "undefined" && callback) {
var lastName = data.lastName;
button.click(function() {
common.prompt(Messages.changeNamePrompt, lastName, function (newName) {
common.prompt(Messages.changeNamePrompt, data.lastName, function (newName) {
callback(newName);
});
});