Index: lams_central/web/includes/javascript/dialog.js =================================================================== diff -u -rf23934c16665e4fbb311fd7f397e2600b4644539 -rbc06500eee15f72a86bd1cac541c42a185bc6047 --- lams_central/web/includes/javascript/dialog.js (.../dialog.js) (revision f23934c16665e4fbb311fd7f397e2600b4644539) +++ lams_central/web/includes/javascript/dialog.js (.../dialog.js) (revision bc06500eee15f72a86bd1cac541c42a185bc6047) @@ -37,9 +37,13 @@ return; } } + + // checks whether the dialog should be created inside a current window or in a parent one. The latter is prefered + //in case we want dialog to be not constrained by the boundaries of a current window + var body = initParams.isCreateInParentWindow ? parent.$("body") : 'body'; // create a new dialog by cloning a template - dialog = dialogTemplate.clone().appendTo('body'); + dialog = dialogTemplate.clone().appendTo(body); // use the input attributes or fall back to default ones initParams = $.extend({