Fix bugs
This commit is contained in:
parent
0f95514102
commit
a1b0262ef3
|
@ -1067,7 +1067,7 @@ define([
|
||||||
var elem = document.getElementById('loadmask-text');
|
var elem = document.getElementById('loadmask-text');
|
||||||
var proc = (progress.asc_getCurrentFont() + progress.asc_getCurrentImage())/(progress.asc_getFontsCount() + progress.asc_getImagesCount());
|
var proc = (progress.asc_getCurrentFont() + progress.asc_getCurrentImage())/(progress.asc_getFontsCount() + progress.asc_getImagesCount());
|
||||||
proc = this.textLoadingDocument + ': ' + Math.min(Math.round(proc*100), 100) + '%';
|
proc = this.textLoadingDocument + ': ' + Math.min(Math.round(proc*100), 100) + '%';
|
||||||
elem ? elem.innerHTML = proc : this.loadMask.setTitle(proc);
|
elem ? elem.innerHTML = proc : this.loadMask && this.loadMask.setTitle(proc);
|
||||||
},
|
},
|
||||||
|
|
||||||
onEditorPermissions: function(params) {
|
onEditorPermissions: function(params) {
|
||||||
|
|
|
@ -839,7 +839,7 @@ define([
|
||||||
var elem = document.getElementById('loadmask-text');
|
var elem = document.getElementById('loadmask-text');
|
||||||
var proc = (progress.asc_getCurrentFont() + progress.asc_getCurrentImage())/(progress.asc_getFontsCount() + progress.asc_getImagesCount());
|
var proc = (progress.asc_getCurrentFont() + progress.asc_getCurrentImage())/(progress.asc_getFontsCount() + progress.asc_getImagesCount());
|
||||||
proc = this.textLoadingDocument + ': ' + Math.min(Math.round(proc*100), 100) + '%';
|
proc = this.textLoadingDocument + ': ' + Math.min(Math.round(proc*100), 100) + '%';
|
||||||
elem ? elem.innerHTML = proc : this.loadMask.setTitle(proc);
|
elem ? elem.innerHTML = proc : this.loadMask && this.loadMask.setTitle(proc);
|
||||||
},
|
},
|
||||||
|
|
||||||
onEditorPermissions: function(params) {
|
onEditorPermissions: function(params) {
|
||||||
|
|
|
@ -864,7 +864,7 @@ define([
|
||||||
var elem = document.getElementById('loadmask-text');
|
var elem = document.getElementById('loadmask-text');
|
||||||
var proc = (progress.asc_getCurrentFont() + progress.asc_getCurrentImage())/(progress.asc_getFontsCount() + progress.asc_getImagesCount());
|
var proc = (progress.asc_getCurrentFont() + progress.asc_getCurrentImage())/(progress.asc_getFontsCount() + progress.asc_getImagesCount());
|
||||||
proc = this.textLoadingDocument + ': ' + Math.min(Math.round(proc*100), 100) + '%';
|
proc = this.textLoadingDocument + ': ' + Math.min(Math.round(proc*100), 100) + '%';
|
||||||
elem ? elem.innerHTML = proc : this.loadMask.setTitle(proc);
|
elem ? elem.innerHTML = proc : this.loadMask && this.loadMask.setTitle(proc);
|
||||||
},
|
},
|
||||||
|
|
||||||
onEditorPermissions: function(params) {
|
onEditorPermissions: function(params) {
|
||||||
|
|
Loading…
Reference in a new issue