Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drowl_admin
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
drowl_admin
Commits
29a877c4
Commit
29a877c4
authored
1 year ago
by
Thomas Frobieter
Browse files
Options
Downloads
Patches
Plain Diff
Release 2.0.18
parent
092c8537
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/drowl_admin.core_dialog_enhancements.js
+14
-17
14 additions, 17 deletions
js/drowl_admin.core_dialog_enhancements.js
package.json
+1
-1
1 addition, 1 deletion
package.json
with
15 additions
and
18 deletions
js/drowl_admin.core_dialog_enhancements.js
+
14
−
17
View file @
29a877c4
"
use strict
"
;
(
function
(
$
,
Drupal
)
{
Drupal
.
behaviors
.
drowl_admin_core_dialog_enhancements
=
{
attach
:
function
(
context
,
settings
)
{
// Add body classes if a modal is currently opened or not.
// We use them in drowl_admin.theme_overrides.gin.scss to block
// disturbing body scrolling while a modal is opened.
if
(
$
(
'
.webform-ajax-form-wrapper
'
).
length
==
0
){
if
(
$
(
'
.webform-ajax-form-wrapper
'
).
length
==
0
)
{
// Exclude webform from this, they do weird things we wont support here.
$
(
window
)
.
once
(
"
drowl-admin-core-dialog-enhancements
"
)
.
on
(
"
dialog:beforecreate
"
,
function
()
{
$
(
"
body:first
"
).
addClass
(
"
drowl-admin--core-dialog-open
"
);
})
.
on
(
"
dialog:aftercreate
"
,
function
()
{
$
(
"
body:first
"
).
addClass
(
"
drowl-admin--core-dialog-open
"
);
})
.
on
(
"
dialog:beforeclose
"
,
function
()
{
$
(
"
body:first
"
).
removeClass
(
"
drowl-admin--core-dialog-open
"
);
})
.
on
(
"
dialog:afterclose
"
,
function
()
{
$
(
"
body:first
"
).
removeClass
(
"
drowl-admin--core-dialog-open
"
);
});
$
(
window
).
once
(
"
drowl-admin-core-dialog-enhancements
"
).
on
(
"
dialog:beforecreate
"
,
function
()
{
$
(
"
body:first
"
).
addClass
(
"
drowl-admin--core-dialog-open
"
);
}).
on
(
"
dialog:aftercreate
"
,
function
()
{
$
(
"
body:first
"
).
addClass
(
"
drowl-admin--core-dialog-open
"
);
}).
on
(
"
dialog:beforeclose
"
,
function
()
{
$
(
"
body:first
"
).
removeClass
(
"
drowl-admin--core-dialog-open
"
);
}).
on
(
"
dialog:afterclose
"
,
function
()
{
$
(
"
body:first
"
).
removeClass
(
"
drowl-admin--core-dialog-open
"
);
});
}
}
,
}
};
})(
jQuery
,
Drupal
);
})(
jQuery
,
Drupal
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
package.json
+
1
−
1
View file @
29a877c4
{
"name"
:
"drupal-drowl-paragraphs"
,
"version"
:
"2.0.1
7
"
,
"version"
:
"2.0.1
8
"
,
"description"
:
"DROWL Paragraphs enhancements like settings fields and other UX / UI / Helper stuff."
,
"main"
:
"index.js"
,
"scripts"
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment