poll: make locks clickable

This commit is contained in:
Pierre Bondoerffer
2017-05-29 16:32:40 +02:00
parent b6bb576a34
commit f434f002c4
4 changed files with 77 additions and 49 deletions

View File

@@ -269,12 +269,8 @@ var Renderer = function (Cryptpad) {
return ['SPAN', {
'data-rt-id': id,
'title': Cryptpad.Messages.poll_locked,
class: 'lock',
}, [['i', {
class: 'fa fa-lock',
'aria-hidden': true,
}, []]
]];
class: 'lock fa fa-lock',
}, []];
};
var makeHeadingCell = Render.makeHeadingCell = function (cell, readOnly) {
@@ -284,7 +280,6 @@ var Renderer = function (Cryptpad) {
if (!readOnly) {
elements.unshift(makeRemoveElement(cell['data-rt-id']));
elements.unshift(makeLockElement(cell['data-rt-id']));
elements.unshift(makeEditElement(cell['data-rt-id']));
}
return ['TD', {}, elements];
}