diff --git a/home.html b/home.html index 2fe864a..82ce2f7 100644 --- a/home.html +++ b/home.html @@ -655,7 +655,7 @@
diff --git a/js/interface_common.js b/js/interface_common.js index 87aaf80..d7e33dd 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -449,6 +449,8 @@ function openUserProfileModalWithNameHandler(peerAlias) { content.find('.tox-ctc').attr('title', polyglot.t('Copy to clipboard')); content.find('.bitmessage-ctc').attr('title', polyglot.t('Copy to clipboard')); + content.find('.open-followers').on('mouseup', {route: '#followers?user=' + peerAlias}, routeOnClick); + var modal = openModal({ classAdd: 'profile-modal', content: content, @@ -952,7 +954,7 @@ function applyShortenedURI(short, uriAndMimetype) { previewContainer.append(startTorrentLink); } } else { - var enableWebTorrentWarning = $('' + + var enableWebTorrentWarning = $('' + polyglot.t('Enable WebTorrent support in options page to display this content') + ''); previewContainer.append(enableWebTorrentWarning); @@ -972,7 +974,7 @@ function startTorrentDownloadAndPreview(torrentId, previewContainer, isMedia) { function _startTorrentDownloadAndPreview(torrentId, previewContainer, isMedia) { var torrent = WebTorrentClient.get(torrentId); - if( torrent === null ) + if( torrent === null ) torrent = WebTorrentClient.add(torrentId); previewContainer.empty(); @@ -1003,7 +1005,7 @@ function webtorrentFilePreview(file, previewContainer, isMedia) { // try guessing by filename extension isMedia = /^[^?]+\.(?:jpe?g|gif|png|mp4|webm|mp3|ogg|wav|)$/i.test(file.name) } - + if (isMedia) { var imagePreview = $('
'); previewContainer.append(imagePreview); @@ -1724,7 +1726,7 @@ function replyTextUpdateRemaining(ta) { return false; } }); - if (!disable && c >= 0 && c < $.Options.MaxPostEditorChars.val && + if (!disable && c >= 0 && c < $.Options.MaxPostEditorChars.val && textArea.val() !== textArea.attr('data-reply-to')) { remainingCount.removeClass('warn'); $.MAL.enableButton(buttonSend); @@ -2354,7 +2356,7 @@ function initInterfaceCommon() { closePrompt(event); }); - $('.open-followers').on('mouseup', {route: '#followers'}, routeOnClick); + $('.module.mini-profile .open-followers').on('mouseup', {route: '#followers'}, routeOnClick); $('.post-text').on('click', 'a', muteEvent); $('.post-reply').on('click', postReplyClick); diff --git a/js/twister_following.js b/js/twister_following.js index a45cd89..3ea7ba9 100644 --- a/js/twister_following.js +++ b/js/twister_following.js @@ -145,7 +145,8 @@ TwisterFollowing.prototype = { .find('li[data-peer-alias="' + args.fu + '"]').remove(); } } - $(".open-followers").attr("title", args.tf.knownFollowers.length.toString()); + $('.module.mini-profile .open-followers') + .attr('title', args.tf.knownFollowers.length.toString()); var ctime = new Date().getTime() / 1000; if (typeof(args.tf.followingsFollowings[args.fu]) === 'undefined' || diff --git a/js/twister_io.js b/js/twister_io.js index 9ab1ac3..5b6a8d8 100644 --- a/js/twister_io.js +++ b/js/twister_io.js @@ -279,7 +279,8 @@ function getFullname(peerAlias, elem) { twisterFollowingO.knownFollowers.push(req.peerAlias); twisterFollowingO.save(); addPeerToFollowersList(getElem('.followers-modal .followers-list'), req.peerAlias, true); - $('.open-followers').attr('title', twisterFollowingO.knownFollowers.length.toString()); + $('.module.mini-profile .open-followers') + .attr('title', twisterFollowingO.knownFollowers.length.toString()); } req.elem.addClass('isFollowing'); req.elem.attr('title', polyglot.t('follows you')); @@ -291,7 +292,8 @@ function getFullname(peerAlias, elem) { if (twisterFollowingO.knownFollowers.indexOf(req.peerAlias) === -1) { twisterFollowingO.knownFollowers.push(req.peerAlias); addPeerToFollowersList(getElem('.followers-modal .followers-list'), req.peerAlias, true); - $('.open-followers').attr('title', twisterFollowingO.knownFollowers.length.toString()); + $('.module.mini-profile .open-followers') + .attr('title', twisterFollowingO.knownFollowers.length.toString()); } req.elem.addClass('isFollowing'); req.elem.attr('title', polyglot.t('follows you'));