From 626e54d7b52fbe47cebdc911483d658b5e518c09 Mon Sep 17 00:00:00 2001 From: Pierre Bondoerffer Date: Mon, 19 Jun 2017 15:30:22 +0200 Subject: [PATCH] Fix poll auto-focus inputs --- www/poll/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/poll/main.js b/www/poll/main.js index 4878b60a6..adfe60ec3 100644 --- a/www/poll/main.js +++ b/www/poll/main.js @@ -491,7 +491,7 @@ var ready = function (info, userid, readOnly) { APP.$createRow = $('#create-option').click(function () { Render.createRow(proxy, function (empty, id) { change(null, null, null, null, function() { - $('.edit[data-rt-id="' + id + '"]').click(); + handleSpan($('.edit[data-rt-id="' + id + '"]')[0]); }); }); }); @@ -499,7 +499,7 @@ var ready = function (info, userid, readOnly) { APP.$createCol = $('#create-user').click(function () { Render.createColumn(proxy, function (empty, id) { change(null, null, null, null, function() { - $('.lock[data-rt-id="' + id + '"]').click(); + handleSpan($('.lock[data-rt-id="' + id + '"]')[0]); }); }); });