From 25f197181455be3223c7fbef04cada8a86e47625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Zanghelini?= Date: Thu, 6 Jul 2017 12:25:13 -0300 Subject: [PATCH] Normalise identation --- lib/modules/quickreply.js | 40 +++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/lib/modules/quickreply.js b/lib/modules/quickreply.js index b7f322f..9083ded 100644 --- a/lib/modules/quickreply.js +++ b/lib/modules/quickreply.js @@ -3,28 +3,28 @@ /*globals $, app, ajaxify, socket*/ define('persona/quickreply', ['components'], function(components) { - var QuickReply = {}; - - QuickReply.init = function() { - - var element = components.get('topic/quickreply/text'); - var data = { - element: element, - strategies: [], - options: { - zIndex: 100, - listPosition: function(position) { - this.$el.css(this._applyPlacement(position)); + var QuickReply = {}; + + QuickReply.init = function() { + + var element = components.get('topic/quickreply/text'); + var data = { + element: element, + strategies: [], + options: { + zIndex: 100, + listPosition: function(position) { + this.$el.css(this._applyPlacement(position)); this.$el.css('position', 'absolute'); return this; - } - } - }; - - $(window).trigger('composer:autocomplete:init', data); + } + } + }; + + $(window).trigger('composer:autocomplete:init', data); 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 = { @@ -41,6 +41,6 @@ define('persona/quickreply', ['components'], function(components) { }); }); }; - - return QuickReply; + + return QuickReply; });