remove old stuff and trim output from utils.heading

pull/16/head
Martin Zimmermann 11 years ago
parent 27ba6d795f
commit 5759513fcd

@ -93,32 +93,6 @@ define(["lib/q", "lib/HTML", "helper/utils", "helper/identicons", "./api", "./fo
})
}
// // EDIT
// $('#isso_' + post['id'] + ' > footer .edit').on('click', function(event) {
//
// if ($('#issoform_' + post['id']).length == 0) { // HTML form not shown
// isso.plain(post['id'], function(status, rv) {
// if (status != 200) return alert('Mööp');
// var rv = form(post['id'], JSON.parse(rv), function(form, id) {
// isso.modify(id, extract(form, post['parent']), function(status, rv) {
// if (status != 200) return alert('Mööp');
//
// $('#issoform_' + post['id']).remove();
// $('#isso_' + post['id']).remove();
// insert(JSON.parse(rv));
// });
// });
//
// $('#isso_' + post['id']).after(rv);
// $('input[type="submit"]', rv)[0].value = 'Bestätigen.';
// });
// } else {
// $('#issoform_' + post['id']).remove();
// };
// event.stop();
// });
// };
// ability to answer directly to a comment
HTML.query("#isso-" + comment.id + " a.reply").addEventListener("click", function(event) {

@ -72,7 +72,7 @@ define({
var rv = recurse(el);
if (rv) {
return rv.textContent
return rv.textContent.trim();
}
el = el.parentNode;

Loading…
Cancel
Save