Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
S
sidekick
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Privat - Marco Schmiedel
sidekick
Commits
83cb97f6
Commit
83cb97f6
authored
Jul 04, 2022
by
Kevin Yumang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SERV-2286 - fixed codemirror bug design when parent is hidden onload
parent
57702748
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
Config.php
src/Views/Limitless/Card/Config.php
+11
-0
card.js
src/Views/Limitless/Card/card.js
+20
-0
No files found.
src/Views/Limitless/Card/Config.php
View file @
83cb97f6
...
@@ -36,6 +36,17 @@
...
@@ -36,6 +36,17 @@
'Limitless::CardStop'
=>
'cardStop'
,
'Limitless::CardStop'
=>
'cardStop'
,
];
];
public
$assetAllocation
;
public
function
__construct
()
{
$this
->
assetAllocation
=
[
'Limitless::CardStart'
=>
[
'card.js'
]
];
}
/*
/*
|--------------------------------------------------------------------------------------------
|--------------------------------------------------------------------------------------------
...
...
src/Views/Limitless/Card/card.js
0 → 100644
View file @
83cb97f6
$
(
document
).
ready
(
function
()
{
// Refresh codemirror elements.
// card collapse on click
$
(
'
.card [data-action=collapse]:not(.disabled)
'
).
on
(
'
click
'
,
function
()
{
let
cardParent
=
$
(
this
).
parents
(
'
.card
'
);
// check if parent is not collapsed.
if
(
!
cardParent
.
hasClass
(
'
card-collapsed
'
))
{
// loop on codemirror elements inside the card.
$
(
cardParent
).
find
(
'
.CodeMirror
'
).
each
(
function
(
i
,
el
){
el
.
CodeMirror
.
refresh
();
});
}
})
})
\ No newline at end of file
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