automatically fill in display name in poll

pull/1/head
Pierre Bondoerffer 7 years ago
parent 0588564bc9
commit 798a3dc520
No known key found for this signature in database
GPG Key ID: C0C7C0C5063F2236

@ -621,6 +621,12 @@ var ready = function (info, userid, readOnly) {
.on('change', ['table'], change)
.on('remove', [], change);
var userInput = $('.uncommitted > input');
if (userInput.val() === '')
{
userInput.val(Cryptpad.getProxy()[Cryptpad.displayNameKey]);
}
UserList.addToUserData(APP.proxy.info.userData);
APP.ready = true;

Loading…
Cancel
Save