Skip to content

Commit

Permalink
fix(ajax): maybe last fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrilyew committed Dec 8, 2024
1 parent 9d75f0b commit 48ccd7e
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Web/Presenters/templates/Audio/List.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
</div>
</div>

<div class="audiosPaddingContainer audiosSideContainer audiosPaddingContainer" n:if="$mode == 'playlists'">
<div class="audiosPaddingContainer audiosSideContainer audiosPaddingContainer" style="width: 72.2%;" n:if="$mode == 'playlists'">
<div n:if="$playlistsCount <= 0" style='height: 100%;'>
{include "../components/content_error.xml", description => $ownerId > 0 ? ($ownerId == $thisUser->getId() ? tr("no_playlists_thisuser") : tr("no_playlists_user")) : tr("no_playlists_club")}
</div>
Expand Down
6 changes: 3 additions & 3 deletions Web/Presenters/templates/Audio/Playlist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</script>

<div class="playlistBlock">
<div class="playlistCover" style="float: left;">
<div class="playlistCover">
{if $cover}
<a href="{$cover_url}" target="_blank">
<img onclick="OpenMiniature(event, {$cover_url}, null, {$cover->getPrettyId()}, null)" src="{$cover_url}" alt="{_playlist_cover}">
Expand All @@ -62,15 +62,15 @@

<div class='playlistWrapper'>
<div class="playlistInfo">
<h4 style="border-bottom:unset;">{$playlist->getName()}</h4>
<h4>{$playlist->getName()}</h4>

<div class="moreInfo">
{$playlist->getMetaDescription()|noescape}

<div style="margin-top: 11px;">
<span>{nl2br($playlist->getDescriptionHTML())|noescape}</span>
</div>
<hr style="color: #f7f7f7;">
<hr>
</div>
</div>
<div class="audiosContainer scroll_container infContainer" style="margin-top: 14px;">
Expand Down
2 changes: 1 addition & 1 deletion Web/Presenters/templates/Messenger/Index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="crp-list scroll_container">
<div n:foreach="$corresps as $coresp"
class="scroll_node crp-entry"
onmousedown="window.location.href = {$coresp->getURL()};" >
onmousedown="window.location.assign({$coresp->getURL()});" >
{var $recipient = $coresp->getCorrespondents()[1]}
{var $lastMsg = $coresp->getPreviewMessage()}

Expand Down
2 changes: 1 addition & 1 deletion Web/Presenters/templates/User/Friends.xml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
<input type="submit" class="profile_link" value="{_friends_reject}" />
</form>
{elseif $subStatus === 3}
<a href="/im?sel={$x->getId()}" class="profile_link">{_send_message}</a>
<a href="/im?sel={$x->getId()}" class="profile_link" rel="nofollow">{_send_message}</a>
<form action="/setSub/user" method="post" class="profile_link_form" id="_submitUserSubscriptionAction">
<input type="hidden" name="act" value="rem" />
<input type="hidden" name="id" value="{$x->getId()}" />
Expand Down
18 changes: 15 additions & 3 deletions Web/static/css/audios.css
Original file line number Diff line number Diff line change
Expand Up @@ -593,13 +593,25 @@
}

.playlistBlock {
display: flex;
gap: 13px;
margin-top: 14px;
}

.playlistBlock .playlistCover {
max-width: 135px;
}

.playlistBlock .playlistWrapper {
float: left;
padding-left: 13px;
width:75%
width: 75%
}

.playlistBlock .playlistInfo h4 {
border-bottom: unset;
}

.playlistBlock .playlistInfo hr {
color: #f7f7f7;
}

.playlistCover .profile_links .profile_link {
Expand Down
2 changes: 1 addition & 1 deletion Web/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,7 @@ a.poll-retract-vote {
gap: 2px;
}

.vertical-attachment .vertical-attachment-content {
.post-buttons .vertical-attachment .vertical-attachment-content {
max-height: 27px;
}

Expand Down
2 changes: 1 addition & 1 deletion Web/static/js/al_wall.js
Original file line number Diff line number Diff line change
Expand Up @@ -2018,7 +2018,7 @@ async function repost(id, repost_type = 'post') {
}
}

NewNotification(tr('information_-1'), tr('shared_succ'), null, () => {window.location.assign(`/wall${res.pretty_id}`)});
NewNotification(tr('information_-1'), tr('shared_succ'), null, () => {window.router.route(`/wall${res.pretty_id}`)});
} catch(e) {
console.error(e)
fastError(e.message)
Expand Down
2 changes: 1 addition & 1 deletion Web/static/js/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ u(document).on('click', 'a', async (e) => {
let url = target.nodes[0].href

if(id) {
if(['act_tab_a', 'ki', 'used', '_pinGroup', 'profile_link'].indexOf(id) == -1) {
if(['act_tab_a', 'ki', 'used', '_pinGroup', 'profile_link', 'minilink-friends', 'minilink-albums', 'minilink-messenger', 'minilink-groups', 'minilink-notifications'].indexOf(id) == -1) {
console.log('AJAX | Skipping cuz maybe its function call link.')
return
}
Expand Down

0 comments on commit 48ccd7e

Please sign in to comment.