From a0bcb901d316e748209632d2da5c6bdb6effe495 Mon Sep 17 00:00:00 2001
From: yflory <yann.flory@xwiki.com>
Date: Mon, 23 Oct 2017 15:16:51 +0200
Subject: [PATCH] Add titles in poll when options or usernames are overflowing

---
 www/poll/render.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/poll/render.js b/www/poll/render.js
index f8dd298b9..afd119909 100644
--- a/www/poll/render.js
+++ b/www/poll/render.js
@@ -219,6 +219,7 @@ var Renderer = function (Cryptpad, APP) {
                         'data-rt-id': col,
                         type: 'text',
                         value: getColumnValue(obj, col) || "",
+                        title: getColumnValue(obj, col) || Cryptpad.Messages.anonymous,
                         placeholder: Cryptpad.Messages.anonymous,
                         disabled: 'disabled'
                     };
@@ -238,6 +239,7 @@ var Renderer = function (Cryptpad, APP) {
             return [{
                 'data-rt-id': row,
                 value: getRowValue(obj, row) || '',
+                title: getRowValue(obj, row) || Cryptpad.Messages.poll_optionPlaceholder,
                 type: 'text',
                 placeholder: Cryptpad.Messages.poll_optionPlaceholder,
                 disabled: 'disabled',