From d962317ad037f4424e70ddb48dded509d3ea7ea7 Mon Sep 17 00:00:00 2001 From: mrilyew <99399973+mrilyew@users.noreply.github.com> Date: Sun, 12 Jan 2025 14:59:22 +0300 Subject: [PATCH] addd search --- Web/static/css/main.css | 11 ++++++++++- Web/static/js/al_docs.js | 35 +++++++++++++++++++++++++++++------ 2 files changed, 39 insertions(+), 7 deletions(-) diff --git a/Web/static/css/main.css b/Web/static/css/main.css index cb5e14f8..6ede9f50 100644 --- a/Web/static/css/main.css +++ b/Web/static/css/main.css @@ -4007,7 +4007,7 @@ hr { background: #F0F0F0; } -#docs_page_wrapper .docs_page_search input[type="search"] { +#docs_page_wrapper .docs_page_search input[type="search"], .attachment_selector .attachment_search input { height: 23px; background: url('/assets/packages/static/openvk/img/search_icon.png') no-repeat 3px 5px; background-color: #fff; @@ -4238,3 +4238,12 @@ hr { cursor: pointer; user-select: none; } + +.attachment_selector .attachment_search { + margin: 6px 0px; +} + +.attachment_selector .attachment_search input { + height: 30px; + background-position-y: 9px; +} diff --git a/Web/static/js/al_docs.js b/Web/static/js/al_docs.js index 7d3eb07b..2c3539ca 100644 --- a/Web/static/js/al_docs.js +++ b/Web/static/js/al_docs.js @@ -305,14 +305,14 @@ u(document).on("click", ".docListViewItem a.viewerOpener, a.docGalleryItem", asy }) // ctx > "wall" and maybe "messages" in future -// source > "user" || "club" > source_id -async function __docAttachment(form, ctx = "wall", source = "user", source_id = 0) { +// source > "user" || "club" > source_arg +async function __docAttachment(form, ctx = "wall", source = "user", source_arg = 0) { const per_page = 10 const msg = new CMessageBox({ title: tr('select_doc'), custom_template: u(`