Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
private_message
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
private_message
Merge requests
!166
Refactor inbox_block_script library.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Refactor inbox_block_script library.
issue/private_message-3491252:3491252-refactor-inboxblockscript-library
into
4.x
Overview
0
Commits
24
Pipelines
12
Changes
10
Merged
Adrian Lorenc
requested to merge
issue/private_message-3491252:3491252-refactor-inboxblockscript-library
into
4.x
3 months ago
Overview
0
Commits
24
Pipelines
12
Changes
3
Expand
Closes
#3491252
0
0
Merge request reports
Compare
version 10
version 11
a66d4b43
3 months ago
version 10
197a117a
3 months ago
version 9
8ce5db89
3 months ago
version 8
a9e45f16
3 months ago
version 7
fa6afe03
3 months ago
version 6
98b0723c
3 months ago
version 5
391cfd18
3 months ago
version 4
f734a4f8
3 months ago
version 3
e5056d75
3 months ago
version 2
9c04c8cc
3 months ago
version 1
cd0d5bd6
3 months ago
4.x (base)
and
version 11
latest version
a66d4b43
24 commits,
3 months ago
version 11
a66d4b43
24 commits,
3 months ago
version 10
197a117a
18 commits,
3 months ago
version 9
8ce5db89
17 commits,
3 months ago
version 8
a9e45f16
16 commits,
3 months ago
version 7
fa6afe03
15 commits,
3 months ago
version 6
98b0723c
14 commits,
3 months ago
version 5
391cfd18
13 commits,
3 months ago
version 4
f734a4f8
12 commits,
3 months ago
version 3
e5056d75
11 commits,
3 months ago
version 2
9c04c8cc
2 commits,
3 months ago
version 1
cd0d5bd6
1 commit,
3 months ago
Show latest version
3 files
+
35
−
22
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
js/private_message_inbox_block.js
+
5
−
6
Options
@@ -84,11 +84,10 @@
* HTML content of threads.
*/
insertPreviousThreads
(
threadsHtml
)
{
const
newNodes
=
Drupal
.
PrivateMessageUtils
.
parseHTML
(
threadsHtml
).
childNodes
;
const
newNodes
=
Drupal
.
PrivateMessageUtils
.
parseHTML
(
threadsHtml
);
newNodes
.
forEach
((
node
)
=>
{
const
appendedElement
=
this
.
container
.
appendChild
(
node
.
cloneNode
(
true
)
);
Array
.
from
(
newNodes
)
.
forEach
((
node
)
=>
{
const
appendedElement
=
this
.
container
.
appendChild
(
node
);
Drupal
.
attachBehaviors
(
appendedElement
);
Drupal
.
PrivateMessageSlide
.
toggleSlide
(
appendedElement
,
true
);
@@ -152,8 +151,8 @@
}
const
newThreadContent
=
Drupal
.
PrivateMessageUtils
.
parseHTML
(
newThreads
[
threadId
],
)
.
childNodes
;
newThreadContent
.
forEach
((
child
)
=>
{
);
Array
.
from
(
newThreadContent
)
.
forEach
((
child
)
=>
{
const
appendedElement
=
this
.
container
.
appendChild
(
child
);
Drupal
.
attachBehaviors
(
appendedElement
);
});
Loading