|
|
@ -57,6 +57,10 @@ function openModal(modal) { |
|
|
|
|
|
|
|
|
|
|
|
if (modal.title) |
|
|
|
if (modal.title) |
|
|
|
modal.self.find('.modal-header h3').html(modal.title); |
|
|
|
modal.self.find('.modal-header h3').html(modal.title); |
|
|
|
|
|
|
|
if (modal.warn) |
|
|
|
|
|
|
|
modal.self.find('.modal-warn') |
|
|
|
|
|
|
|
.show() |
|
|
|
|
|
|
|
.find('.warn-text').html(modal.warn); |
|
|
|
if (modal.content) |
|
|
|
if (modal.content) |
|
|
|
modal.content = modal.self.find('.modal-content') |
|
|
|
modal.content = modal.self.find('.modal-content') |
|
|
|
.append(modal.content); |
|
|
|
.append(modal.content); |
|
|
@ -610,12 +614,11 @@ function openFollowersModal(peerAlias) { |
|
|
|
var modal = openModal({ |
|
|
|
var modal = openModal({ |
|
|
|
classAdd: 'followers-modal', |
|
|
|
classAdd: 'followers-modal', |
|
|
|
content: twister.tmpl.followersList.clone(true), |
|
|
|
content: twister.tmpl.followersList.clone(true), |
|
|
|
title: title |
|
|
|
title: title, |
|
|
|
|
|
|
|
warn: txtAlert |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
appendFollowersToElem(modal.content.find('ol'), followers); |
|
|
|
appendFollowersToElem(modal.content.find('ol'), followers); |
|
|
|
|
|
|
|
|
|
|
|
alertPopup({txtMessage: txtAlert}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function appendFollowersToElem(list, followers) { |
|
|
|
function appendFollowersToElem(list, followers) { |
|
|
@ -1537,7 +1540,7 @@ function postExpandFunction(e, postLi) { |
|
|
|
var originalLi = $('<li/>', {class: 'module post original'}).appendTo(itemOl) |
|
|
|
var originalLi = $('<li/>', {class: 'module post original'}).appendTo(itemOl) |
|
|
|
.append(originalPost); |
|
|
|
.append(originalPost); |
|
|
|
|
|
|
|
|
|
|
|
setPostImagePreview(postExpandedContent, originalPost.find('a[rel="nofollow"]')); |
|
|
|
setPostImagePreview(postExpandedContent, originalPost.find('a[rel^="nofollow"]')); |
|
|
|
|
|
|
|
|
|
|
|
postExpandedContent.slideDown('fast'); |
|
|
|
postExpandedContent.slideDown('fast'); |
|
|
|
|
|
|
|
|
|
|
@ -2517,6 +2520,8 @@ function initInterfaceCommon() { |
|
|
|
|
|
|
|
|
|
|
|
$('.modal-back').on('click', function() {history.back();}); |
|
|
|
$('.modal-back').on('click', function() {history.back();}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('.modal-warn-close').on('click', function() {$(this).closest('.modal-warn').hide()}); |
|
|
|
|
|
|
|
|
|
|
|
$('.prompt-close').on('click', closePrompt); |
|
|
|
$('.prompt-close').on('click', closePrompt); |
|
|
|
|
|
|
|
|
|
|
|
$('button.follow').on('click', clickFollow); |
|
|
|
$('button.follow').on('click', clickFollow); |
|
|
|