Index: lams_central/web/includes/javascript/dialog.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/dialog.js,v diff -u -r1.1.2.20 -r1.1.2.21 --- lams_central/web/includes/javascript/dialog.js 8 Dec 2016 14:36:07 -0000 1.1.2.20 +++ lams_central/web/includes/javascript/dialog.js 9 Dec 2016 17:45:54 -0000 1.1.2.21 @@ -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({