|
|
@ -449,6 +449,8 @@ function openUserProfileModalWithNameHandler(peerAlias) { |
|
|
|
content.find('.tox-ctc').attr('title', polyglot.t('Copy to clipboard')); |
|
|
|
content.find('.tox-ctc').attr('title', polyglot.t('Copy to clipboard')); |
|
|
|
content.find('.bitmessage-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({ |
|
|
|
var modal = openModal({ |
|
|
|
classAdd: 'profile-modal', |
|
|
|
classAdd: 'profile-modal', |
|
|
|
content: content, |
|
|
|
content: content, |
|
|
@ -952,7 +954,7 @@ function applyShortenedURI(short, uriAndMimetype) { |
|
|
|
previewContainer.append(startTorrentLink); |
|
|
|
previewContainer.append(startTorrentLink); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
var enableWebTorrentWarning = $('<span>' + |
|
|
|
var enableWebTorrentWarning = $('<span>' + |
|
|
|
polyglot.t('Enable WebTorrent support in options page to display this content') + |
|
|
|
polyglot.t('Enable WebTorrent support in options page to display this content') + |
|
|
|
'</span>'); |
|
|
|
'</span>'); |
|
|
|
previewContainer.append(enableWebTorrentWarning); |
|
|
|
previewContainer.append(enableWebTorrentWarning); |
|
|
@ -972,7 +974,7 @@ function startTorrentDownloadAndPreview(torrentId, previewContainer, isMedia) { |
|
|
|
|
|
|
|
|
|
|
|
function _startTorrentDownloadAndPreview(torrentId, previewContainer, isMedia) { |
|
|
|
function _startTorrentDownloadAndPreview(torrentId, previewContainer, isMedia) { |
|
|
|
var torrent = WebTorrentClient.get(torrentId); |
|
|
|
var torrent = WebTorrentClient.get(torrentId); |
|
|
|
if( torrent === null ) |
|
|
|
if( torrent === null ) |
|
|
|
torrent = WebTorrentClient.add(torrentId); |
|
|
|
torrent = WebTorrentClient.add(torrentId); |
|
|
|
|
|
|
|
|
|
|
|
previewContainer.empty(); |
|
|
|
previewContainer.empty(); |
|
|
@ -1003,7 +1005,7 @@ function webtorrentFilePreview(file, previewContainer, isMedia) { |
|
|
|
// try guessing by filename extension
|
|
|
|
// try guessing by filename extension
|
|
|
|
isMedia = /^[^?]+\.(?:jpe?g|gif|png|mp4|webm|mp3|ogg|wav|)$/i.test(file.name) |
|
|
|
isMedia = /^[^?]+\.(?:jpe?g|gif|png|mp4|webm|mp3|ogg|wav|)$/i.test(file.name) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (isMedia) { |
|
|
|
if (isMedia) { |
|
|
|
var imagePreview = $('<div class="image-preview" />'); |
|
|
|
var imagePreview = $('<div class="image-preview" />'); |
|
|
|
previewContainer.append(imagePreview); |
|
|
|
previewContainer.append(imagePreview); |
|
|
@ -1724,7 +1726,7 @@ function replyTextUpdateRemaining(ta) { |
|
|
|
return false; |
|
|
|
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')) { |
|
|
|
textArea.val() !== textArea.attr('data-reply-to')) { |
|
|
|
remainingCount.removeClass('warn'); |
|
|
|
remainingCount.removeClass('warn'); |
|
|
|
$.MAL.enableButton(buttonSend); |
|
|
|
$.MAL.enableButton(buttonSend); |
|
|
@ -2354,7 +2356,7 @@ function initInterfaceCommon() { |
|
|
|
closePrompt(event); |
|
|
|
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-text').on('click', 'a', muteEvent); |
|
|
|
$('.post-reply').on('click', postReplyClick); |
|
|
|
$('.post-reply').on('click', postReplyClick); |
|
|
|