|
|
|
@ -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;
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|