mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
parent
efa3e1213c
commit
35bfe97360
3 changed files with 12 additions and 2 deletions
|
@ -132,7 +132,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<a style="width: 194px;" n:if="OPENVK_ROOT_CONF['openvk']['preferences']['commerce'] && $user->getGiftCount() == 0" href="/gifts?act=pick&user={$user->getId()}" class="profile_link">{_send_gift}</a>
|
<a style="width: 194px;" n:if="OPENVK_ROOT_CONF['openvk']['preferences']['commerce'] && $user->getGiftCount() == 0" href="/gifts?act=pick&user={$user->getId()}" class="profile_link">{_send_gift}</a>
|
||||||
<a style="width: 194px;" n:if="$user->getPrivacyPermission('messages.write', $thisUser)" href="/im?sel={$user->getId()}" class="profile_link">{_send_message}</a>
|
<a style="width: 194px;" n:if="$user->getPrivacyPermission('messages.write', $thisUser)" href="/im?sel={$user->getId()}" class="profile_link" rel="nofollow">{_send_message}</a>
|
||||||
|
|
||||||
{var $subStatus = $user->getSubscriptionStatus($thisUser)}
|
{var $subStatus = $user->getSubscriptionStatus($thisUser)}
|
||||||
{if $subStatus === 0}
|
{if $subStatus === 0}
|
||||||
|
|
|
@ -152,7 +152,7 @@ window.router = new class {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!url || url == '' || url == '/') {
|
if(!url || url == '') {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -275,6 +275,11 @@ u(document).on('click', 'a', async (e) => {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// temporary fix
|
||||||
|
if(dom_url == '/') {
|
||||||
|
url = url + 'id0'
|
||||||
|
}
|
||||||
|
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|
||||||
console.log(`AJAX | Going to URL ${url}`)
|
console.log(`AJAX | Going to URL ${url}`)
|
||||||
|
|
|
@ -229,6 +229,11 @@ function serializeForm(form, submitter = null)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
case 'radio':
|
||||||
|
if(inp.checked) {
|
||||||
|
fd.append(inp.name, inp.value)
|
||||||
|
}
|
||||||
|
break
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue