diff --git a/Web/Presenters/templates/@layout.xml b/Web/Presenters/templates/@layout.xml index 8cc96e4a..c0cf92eb 100644 --- a/Web/Presenters/templates/@layout.xml +++ b/Web/Presenters/templates/@layout.xml @@ -457,7 +457,7 @@ "audio_genres": {\openvk\Web\Models\Entities\Audio::genres}, "at_search": {$atSearch ?? false}, "max_attachments": {\OPENVK_ROOT_CONF["openvk"]["preferences"]["wall"]["postSizes"]["maxAttachments"] ?? 10}, - "max_filesize_mb": 5, + "max_filesize_mb": 100, "current_id": {$thisUser ? $thisUser->getId() : 0}, "disable_ajax": {$disable_ajax ? $disable_ajax : 0}, "max_add_fields": {ovkGetQuirk("users.max-fields")}, diff --git a/Web/static/js/al_feed.js b/Web/static/js/al_feed.js index 87981a04..dd833355 100644 --- a/Web/static/js/al_feed.js +++ b/Web/static/js/al_feed.js @@ -85,6 +85,7 @@ u(document).on('click', '#__feed_settings_link', (e) => { const CURRENT_PAGE = Number(__temp_url.searchParams.get('p') ?? 1) const CURRENT_RETURN_BANNED = Number(__temp_url.searchParams.get('return_banned') ?? 0) const CURRENT_AUTO_SCROLL = Number(localStorage.getItem('ux.auto_scroll') ?? 1) + const CURRENT_DISABLE_AJAX = Number(localStorage.getItem('ux.disable_ajax_routing') ?? 0) const COUNT = [1, 5, 10, 20, 30, 40, 50] u('#_feed_settings_container #__content').html(` @@ -115,6 +116,16 @@ u(document).on('click', '#__feed_settings_link', (e) => { + + + +
+ + + + + +
@@ -281,5 +292,10 @@ u(document).on('click', '#__feed_settings_link', (e) => { }) u(document).on('change', `input[data-act='localstorage_item']`, (e) => { + if(e.target.dataset.inverse) { + localStorage.setItem(e.target.name, Number(!e.target.checked)) + return + } + localStorage.setItem(e.target.name, Number(e.target.checked)) }) diff --git a/locales/en.strings b/locales/en.strings index 1aff6d88..38718058 100644 --- a/locales/en.strings +++ b/locales/en.strings @@ -237,6 +237,7 @@ "posts_per_page" = "Number of posts per page"; "show_ignored_sources" = "Show ignored sources"; "auto_scroll" = "Autoscroll"; +"ajax_routing" = "AJAX-transitions"; "attachment" = "Attachment"; "post_as_group" = "Post as group"; diff --git a/locales/ru.strings b/locales/ru.strings index 93439550..9ca1cfcf 100644 --- a/locales/ru.strings +++ b/locales/ru.strings @@ -222,6 +222,7 @@ "posts_per_page" = "Количество записей на странице"; "show_ignored_sources" = "Показывать игнорируемые источники"; "auto_scroll" = "Автоматическая прокрутка"; +"ajax_routing" = "AJAX-переходы"; "attachment" = "Вложение"; "post_as_group" = "От имени сообщества"; "comment_as_group" = "От имени сообщества";