mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 05:07:27 +02:00
JS API - page loader minor fix
This commit is contained in:
@@ -8,8 +8,8 @@
|
|||||||
* e107 Javascript API
|
* e107 Javascript API
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_files/jslib/e107.js.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_files/jslib/e107.js.php,v $
|
||||||
* $Revision: 1.30 $
|
* $Revision: 1.31 $
|
||||||
* $Date: 2009-04-22 17:34:47 $
|
* $Date: 2009-04-23 10:16:35 $
|
||||||
* $Author: secretr $
|
* $Author: secretr $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -1262,6 +1262,14 @@ e107Utils.IframeShim = Class.create({
|
|||||||
('Loading') .addModLan('core-loading', 'alt');
|
('Loading') .addModLan('core-loading', 'alt');
|
||||||
('Loading, please wait...').addModLan('core-loading', 'text');
|
('Loading, please wait...').addModLan('core-loading', 'text');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Global Prefs
|
||||||
|
*/
|
||||||
|
e107Base.setPrefs('core-loading', {
|
||||||
|
opacity: 0.8
|
||||||
|
//TODO - more to come!
|
||||||
|
});
|
||||||
|
|
||||||
e107Utils.LoadingStatus = Class.create(e107WidgetAbstract, {
|
e107Utils.LoadingStatus = Class.create(e107WidgetAbstract, {
|
||||||
|
|
||||||
initialize: function(dest_element, options) {
|
initialize: function(dest_element, options) {
|
||||||
@@ -1273,7 +1281,6 @@ e107Utils.LoadingStatus = Class.create(e107WidgetAbstract, {
|
|||||||
this.iframeShim = this.getModCache(this.cacheStr + '-iframe');
|
this.iframeShim = this.getModCache(this.cacheStr + '-iframe');
|
||||||
this.destElement = ($(dest_element) || $$('body')[0]);
|
this.destElement = ($(dest_element) || $$('body')[0]);
|
||||||
|
|
||||||
//this.addModLan('loading_text', 'Loading, please wait...').addModLan('loading_alt', 'Loading');
|
|
||||||
this.re_center = this.recenter.bindAsEventListener(this);
|
this.re_center = this.recenter.bindAsEventListener(this);
|
||||||
|
|
||||||
this.create();
|
this.create();
|
||||||
@@ -1308,9 +1315,8 @@ e107Utils.LoadingStatus = Class.create(e107WidgetAbstract, {
|
|||||||
objBody.insert({
|
objBody.insert({
|
||||||
bottom: this.loading_mask
|
bottom: this.loading_mask
|
||||||
});
|
});
|
||||||
this.loading_mask.setStyle( { 'opacity': 0.8, zIndex: 9000 } );
|
|
||||||
}
|
}
|
||||||
|
this.loading_mask.setStyle( { 'opacity': this.options.opacity, zIndex: 9000 } );
|
||||||
this.loading_mask_loader = this.loading_mask.down('#loading-mask-loader');
|
this.loading_mask_loader = this.loading_mask.down('#loading-mask-loader');
|
||||||
this.loading_mask_loader.setStyle( { /*'position': 'fixed', */zIndex: 9100 } );
|
this.loading_mask_loader.setStyle( { /*'position': 'fixed', */zIndex: 9100 } );
|
||||||
//Create iframeShim if required
|
//Create iframeShim if required
|
||||||
|
Reference in New Issue
Block a user