Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
neuro-images
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Александр Чаплыгин
neuro-images
Commits
909363bc
Commit
909363bc
authored
Jun 10, 2022
by
Александр Чаплыгин
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Обработка пробела на сете с 2-мя картинками, пересчёт скролла
parent
24a3e3f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
script-main.js
src/public/js/script-main.js
+15
-2
No files found.
src/public/js/script-main.js
View file @
909363bc
...
...
@@ -381,7 +381,7 @@ $(document).ready(function(){
var
$curFolder
=
$
(
'.b-list_folders-item[data-folder="'
+
folderStorage
+
'"]'
);
$curFolder
.
parents
(
'.b-list_folders'
).
animate
({
scrollTop
:
$curFolder
.
offset
().
top
scrollTop
:
$curFolder
.
offset
().
top
-
88
},
100
);
$curFolder
.
trigger
(
"click"
,
{
data
:
'emul'
});
...
...
@@ -476,11 +476,24 @@ $(document).ready(function(){
{
var
$activeFolder
=
$
(
'.b-preview_inner.active .b-folder-content.active'
,
$foldersContentWrap
),
$fotoFolder
=
$
(
'.b-foto'
,
$activeFolder
),
$fotoFocused
=
$
(
'.b-foto.focus'
,
$activeFolder
);
// Пробел на подсвеченном сете, в котором 2 картинки:
if
(
$fotoFolder
.
length
==
2
)
{
$
(
'.b-foto_inner'
,
$fotoFolder
.
first
()).
click
();
return
false
;
}
// Пробел на подсвеченном фото:
if
(
$fotoFocused
.
length
>
0
)
{
$
(
'.b-foto_inner'
,
$fotoFocused
).
click
();
}
}
// Вниз
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment