Links protocol fix.

This commit is contained in:
Alexey Skobkin 2014-04-04 01:57:37 +04:00
parent 5afe90a990
commit 9f55bff748

View file

@ -153,11 +153,11 @@ $(document).ready(function() {
var date = new Date(); var date = new Date();
// Data for template // Data for template
var userLink = location.protocol + '//' + wsMessage.author + '.point.im/'; var userLink = '//' + wsMessage.author + '.point.im/';
var postAuthorLink = $('#top-post .info a').attr('href'); var postAuthorLink = $('#top-post .info a').attr('href');
var postLink = postAuthorLink + wsMessage.post_id; var postLink = postAuthorLink + wsMessage.post_id;
var userAvatar = location.protocol + '//point.im/avatar/' + wsMessage.author; var userAvatar = '//point.im/avatar/' + wsMessage.author;
var commentLink = location.protocol + '//point.im/' + wsMessage.post_id + '#' + wsMessage.comment_id; var commentLink = '//point.im/' + wsMessage.post_id + '#' + wsMessage.comment_id;
var csRfToken = $('.reply-form input[name="csrf_token"').val(); var csRfToken = $('.reply-form input[name="csrf_token"').val();
// Filling template // Filling template