use numbers, not strings

pull/1/head
Pierre Bondoerffer 8 years ago
parent 848010842f
commit b2eef94232
No known key found for this signature in database
GPG Key ID: C0C7C0C5063F2236

@ -72,7 +72,7 @@ var Renderer = function (Cryptpad) {
var getCellValue = Render.getCellValue = function (obj, cellId) {
var value = Cryptpad.find(obj, ['table', 'cells'].concat([cellId]));
if (typeof value === 'boolean') {
return (value === true ? '1' : '0');
return (value === true ? 1 : 0);
} else {
return value;
}

Loading…
Cancel
Save