From 888577ab244df6634f569d6d25ab6a80a55223f4 Mon Sep 17 00:00:00 2001 From: Anil Mandepudi Date: Tue, 13 Dec 2016 14:09:14 -0800 Subject: [PATCH] Fix tabs --- lib/modules/quickreply.js | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/lib/modules/quickreply.js b/lib/modules/quickreply.js index 6ffa1b4..b7f322f 100644 --- a/lib/modules/quickreply.js +++ b/lib/modules/quickreply.js @@ -15,8 +15,8 @@ define('persona/quickreply', ['components'], function(components) { zIndex: 100, listPosition: function(position) { this.$el.css(this._applyPlacement(position)); - this.$el.css('position', 'absolute'); - return this; + this.$el.css('position', 'absolute'); + return this; } } }; @@ -25,23 +25,22 @@ define('persona/quickreply', ['components'], function(components) { data.element.textcomplete(data.strategies, data.options); $('.textcomplete-wrapper').css('height', '100%').find('textarea').css('height', '100%'); - components.get('topic/quickreply/button').on('click', function(e) { - var replyMsg = components.get('topic/quickreply/text').val(); - var replyData = { + components.get('topic/quickreply/button').on('click', function(e) { + var replyMsg = components.get('topic/quickreply/text').val(); + var replyData = { tid: ajaxify.data.tid, handle: undefined, content: replyMsg }; - + socket.emit('posts.reply', replyData, function(err, data) { - if (err) { - app.alertError(err.message); - } - - components.get('topic/quickreply/text').val(''); + if (err) { + app.alertError(err.message); + } + components.get('topic/quickreply/text').val(''); }); - }); - }; + }); + }; return QuickReply; -}); \ No newline at end of file +});