Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
druplan
Manage
Activity
Members
Labels
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
planning
druplan
Merge requests
!24
imp: add open off canvas form ajax command
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
imp: add open off canvas form ajax command
imp-add-open-off-canvas-form-ajax-command
into
master
Overview
0
Commits
1
Pipelines
2
Changes
3
Merged
simon
requested to merge
imp-add-open-off-canvas-form-ajax-command
into
master
3 years ago
Overview
0
Commits
1
Pipelines
2
Changes
3
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
37acb575
1 commit,
3 years ago
3 files
+
60
−
0
Expand all files
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
Search (e.g. *.vue) (Ctrl+P)
js/druplan.js
0 → 100644
+
22
−
0
Options
/**
* @file
* Fullcalendar View plugin JavaScript file.
*/
// Jquery wrapper for drupal to avoid conflicts between libraries.
(
function
(
$
,
Drupal
)
{
Drupal
.
AjaxCommands
.
prototype
.
openOffCanvasForm
=
function
(
ajax
,
response
,
status
)
{
let
modal_settings
=
{
// url: viewSettings['response.url'] + "?start=" + slotDate + "&destination=" + window.location.pathname,
url
:
response
.
url
,
dialogType
:
'
dialog
'
,
dialogRenderer
:
'
off_canvas
'
,
dialog
:
{
width
:
'
fit-content
'
,
classes
:
{
'
ui-dialog
'
:
'
druplan-dialog druplan-dialog-off-canvas
'
}
},
};
Drupal
.
ajax
(
modal_settings
).
execute
();
}
})(
jQuery
,
Drupal
);