Fix edit control

When a data attribute is missing it should be `false` not `null`.
This commit is contained in:
David Wick
2015-01-29 12:38:50 -08:00
parent 112c26dcdd
commit eace788771

View File

@@ -26,6 +26,7 @@
function getEmbedUrl(commentUrl, el) {
var context = 0;
var showedits = el.getAttribute('data-embed-live');
if (el.getAttribute('data-embed-parent') === 'true') {
context++;
@@ -34,7 +35,7 @@
var query = 'embed=' + el.getAttribute('data-embed-token') +
'&context=' + context +
'&depth=' + (++context) +
'&showedits=' + el.getAttribute('data-embed-live') +
'&showedits=' + (showedits === 'true') +
'&created=' + el.getAttribute('data-embed-created') +
'&showmore=false';