Skip to content
Snippets Groups Projects
Commit 29a877c4 authored by Thomas Frobieter's avatar Thomas Frobieter
Browse files

Release 2.0.18

parent 092c8537
No related branches found
No related tags found
No related merge requests found
"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
{
"name": "drupal-drowl-paragraphs",
"version": "2.0.17",
"version": "2.0.18",
"description": "DROWL Paragraphs enhancements like settings fields and other UX / UI / Helper stuff.",
"main": "index.js",
"scripts": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment