mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-25 15:37:56 +01:00
Disable error dialog on editor to avoid unnecesary errors.
This commit is contained in:
parent
a442c487e4
commit
d85dfcba02
@ -28,6 +28,7 @@ function buildDesigner(options) {
|
||||
designer.addEvent('loadSuccess', function () {
|
||||
window.waitDialog.close.delay(1000, window.waitDialog);
|
||||
window.waitDialog = null;
|
||||
window.mindmapLoadReady = true;
|
||||
});
|
||||
|
||||
window.onerror = function (message, url, lineNo) {
|
||||
@ -37,6 +38,7 @@ function buildDesigner(options) {
|
||||
window.waitDialog.close.delay(1000, window.waitDialog);
|
||||
window.waitDialog = null;
|
||||
}
|
||||
|
||||
var req = new Request({
|
||||
method:'post',
|
||||
url:"/service/logger/editor",
|
||||
@ -49,7 +51,11 @@ function buildDesigner(options) {
|
||||
userAgent:navigator.userAgent,
|
||||
mapId:options.mapId}));
|
||||
|
||||
errorDialog.show();
|
||||
// Open error dialog only in case of mindmap loading errors. The rest of the error are reported but not display the dialog.
|
||||
// Remove this in the near future.
|
||||
if (!window.mindmapLoadReady) {
|
||||
errorDialog.show();
|
||||
}
|
||||
};
|
||||
|
||||
// Configure default persistence manager ...
|
||||
|
Loading…
Reference in New Issue
Block a user