mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
Take respective window object into account while building loading_prompt
This commit is contained in:
parent
b7a948bdff
commit
f9aec1bf46
@ -269,21 +269,23 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
|||||||
loading_prompt: function(_id,_stat,_msg,_node, _mode)
|
loading_prompt: function(_id,_stat,_msg,_node, _mode)
|
||||||
{
|
{
|
||||||
var $container = '';
|
var $container = '';
|
||||||
var id = 'egw-loadin-prompt_'+_id || 'egw-loading-prompt_1';
|
var jQuery = _wnd.jQuery;
|
||||||
|
|
||||||
|
var id = _id? 'egw-loadin-prompt_'+_id: 'egw-loading-prompt_1';
|
||||||
var mode = _mode || 'spinner';
|
var mode = _mode || 'spinner';
|
||||||
if (_stat)
|
if (_stat)
|
||||||
{
|
{
|
||||||
var $node = jQuery(_node) || jQuery ('body');
|
var $node = _node? jQuery(_node): jQuery('body');
|
||||||
|
|
||||||
var $container = jQuery(document.createElement('div'))
|
var $container = jQuery(_wnd.document.createElement('div'))
|
||||||
.attr('id', id)
|
.attr('id', id)
|
||||||
.addClass('egw-loading-prompt-container ui-front');
|
.addClass('egw-loading-prompt-container ui-front');
|
||||||
|
|
||||||
var $text = jQuery(document.createElement('span'))
|
var $text = jQuery(_wnd.document.createElement('span'))
|
||||||
.addClass('egw-loading-prompt-'+mode+'-msg')
|
.addClass('egw-loading-prompt-'+mode+'-msg')
|
||||||
.text(_msg)
|
.text(_msg)
|
||||||
.appendTo($container);
|
.appendTo($container);
|
||||||
var $animator = jQuery(document.createElement('div'))
|
var $animator = jQuery(_wnd.document.createElement('div'))
|
||||||
.addClass('egw-loading-prompt-'+mode+'-animator')
|
.addClass('egw-loading-prompt-'+mode+'-animator')
|
||||||
.appendTo($container);
|
.appendTo($container);
|
||||||
$container.insertBefore($node);
|
$container.insertBefore($node);
|
||||||
|
Loading…
Reference in New Issue
Block a user