Skip to content
Snippets Groups Projects
Commit 798964f1 authored by David Nova's avatar David Nova Committed by Devin Carlson
Browse files

Issue #2653216 by david4lim, Devin Carlson: impossible to make non-modal non-draggable

parent eef410c5
No related branches found
No related tags found
No related merge requests found
...@@ -324,6 +324,16 @@ function ajax_deliver_dialog($page_callback_result) { ...@@ -324,6 +324,16 @@ function ajax_deliver_dialog($page_callback_result) {
$dialog_options['modal'] = TRUE; $dialog_options['modal'] = TRUE;
} }
// Convert string values to booleans.
foreach ($dialog_options as $key => $value) {
if ($value === 'true') {
$dialog_options[$key] = TRUE;
}
elseif ($value === 'false') {
$dialog_options[$key] = FALSE;
}
}
$commands[] = dialog_command_open_dialog($selector, $title, $html, $dialog_options); $commands[] = dialog_command_open_dialog($selector, $title, $html, $dialog_options);
$return = array( $return = array(
'#type' => 'ajax', '#type' => 'ajax',
......
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