From 798a3dc52034b15db1b8b31cdee307a1ce089c8a Mon Sep 17 00:00:00 2001 From: Pierre Bondoerffer Date: Mon, 7 Aug 2017 12:19:21 +0200 Subject: [PATCH] automatically fill in display name in poll --- www/poll/main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www/poll/main.js b/www/poll/main.js index ecb308a36..7bef35e6d 100644 --- a/www/poll/main.js +++ b/www/poll/main.js @@ -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;