From 0c047d2fc42f2f836c5f479606948795cd874623 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sun, 12 May 2013 16:03:45 -0400 Subject: [PATCH] fixing indents in one code block --- public/templates/topic.tpl | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl index 19e445385f..d5e2121da5 100644 --- a/public/templates/topic.tpl +++ b/public/templates/topic.tpl @@ -224,18 +224,18 @@ app.open_post_window('edit', "{topic_id}", "{topic_name}", pid); }); - $('.post-container').delegate('.delete', 'click', function(e) { - var pid = ($(this).attr('id') || $(this.parentNode).attr('id')).split('_')[1], - postEl = $(document.querySelector('#post-container li[data-pid="' + pid + '"]')), - deleteAction = !postEl.hasClass('deleted') ? true : false, - confirmDel = confirm((deleteAction ? 'Delete' : 'Restore') + ' this post?'); - - if (confirmDel) { - deleteAction ? - socket.emit('api:posts.delete', { pid: pid }) : - socket.emit('api:posts.restore', { pid: pid }); - } - }); + $('.post-container').delegate('.delete', 'click', function(e) { + var pid = ($(this).attr('id') || $(this.parentNode).attr('id')).split('_')[1], + postEl = $(document.querySelector('#post-container li[data-pid="' + pid + '"]')), + deleteAction = !postEl.hasClass('deleted') ? true : false, + confirmDel = confirm((deleteAction ? 'Delete' : 'Restore') + ' this post?'); + + if (confirmDel) { + deleteAction ? + socket.emit('api:posts.delete', { pid: pid }) : + socket.emit('api:posts.restore', { pid: pid }); + } + }); ajaxify.register_events([ 'event:rep_up', 'event:rep_down', 'event:new_post', 'api:get_users_in_room',