diff --git a/Web/Presenters/templates/Documents/components/doc.xml b/Web/Presenters/templates/Documents/components/doc.xml index 2c0f846b..a9d2d158 100644 --- a/Web/Presenters/templates/Documents/components/doc.xml +++ b/Web/Presenters/templates/Documents/components/doc.xml @@ -28,7 +28,7 @@ {/if} -
+
diff --git a/Web/Presenters/templates/Documents/components/image.xml b/Web/Presenters/templates/Documents/components/image.xml index c5c39938..159919a1 100644 --- a/Web/Presenters/templates/Documents/components/image.xml +++ b/Web/Presenters/templates/Documents/components/image.xml @@ -11,7 +11,7 @@ gif photo view {/if} -
+
diff --git a/Web/Presenters/templates/Group/View.xml b/Web/Presenters/templates/Group/View.xml index e05f5fde..2fd92915 100644 --- a/Web/Presenters/templates/Group/View.xml +++ b/Web/Presenters/templates/Group/View.xml @@ -43,7 +43,7 @@
-
+
{var $followersCount = $club->getFollowersCount()}
@@ -91,7 +91,7 @@
-
+
{_audios}
@@ -291,7 +291,7 @@
-
+
{_documents}
diff --git a/Web/static/js/al_docs.js b/Web/static/js/al_docs.js index 553cfd90..98702b78 100644 --- a/Web/static/js/al_docs.js +++ b/Web/static/js/al_docs.js @@ -266,6 +266,9 @@ u(document).on("click", ".docListViewItem a.viewerOpener, a.docGalleryItem", asy if(e.target.closest('.doc_volume_action')) { return } + if(window.openvk.current_id == 0) { + return + } const target = u(e.target) const link = target.closest('a') diff --git a/Web/static/js/router.js b/Web/static/js/router.js index 51ba1a48..2a3a6c6a 100644 --- a/Web/static/js/router.js +++ b/Web/static/js/router.js @@ -309,10 +309,6 @@ u(document).on('submit', 'form', async (e) => { return } - if((localStorage.getItem('ux.disable_ajax_routing') ?? 0) == 1 || window.openvk.current_id == 0) { - return false - } - if(window.openvk.disable_ajax == 1) { return false } @@ -322,6 +318,10 @@ u(document).on('submit', 'form', async (e) => { collect_attachments_node(target) } + if((localStorage.getItem('ux.disable_ajax_routing') ?? 0) == 1 || window.openvk.current_id == 0) { + return false + } + u('#ajloader').addClass('shown') const form = e.target