Merge pull request #222 from ONLYOFFICE/feature/mobile-settings
[SSE mobile] Fix bug with modal overlay
This commit is contained in:
commit
7fcea108e3
|
@ -200,6 +200,7 @@ define([
|
||||||
});
|
});
|
||||||
}).on('close', function () {
|
}).on('close', function () {
|
||||||
$overlay.off('removeClass');
|
$overlay.off('removeClass');
|
||||||
|
$overlay.removeClass('modal-overlay-visible');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -670,8 +671,11 @@ define([
|
||||||
var me = this,
|
var me = this,
|
||||||
format = $(e.currentTarget).data('format');
|
format = $(e.currentTarget).data('format');
|
||||||
|
|
||||||
|
me.hideModal();
|
||||||
|
|
||||||
if (format) {
|
if (format) {
|
||||||
if (format == Asc.c_oAscFileType.CSV) {
|
if (format == Asc.c_oAscFileType.CSV) {
|
||||||
|
setTimeout(function () {
|
||||||
uiApp.confirm(
|
uiApp.confirm(
|
||||||
me.warnDownloadAs,
|
me.warnDownloadAs,
|
||||||
me.notcriticalErrorTitle,
|
me.notcriticalErrorTitle,
|
||||||
|
@ -679,11 +683,12 @@ define([
|
||||||
Common.NotificationCenter.trigger('download:advanced', Asc.c_oAscAdvancedOptionsID.CSV, me.api.asc_getAdvancedOptions(), 2, new Asc.asc_CDownloadOptions(format));
|
Common.NotificationCenter.trigger('download:advanced', Asc.c_oAscAdvancedOptionsID.CSV, me.api.asc_getAdvancedOptions(), 2, new Asc.asc_CDownloadOptions(format));
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
}, 50);
|
||||||
} else {
|
} else {
|
||||||
|
setTimeout(function () {
|
||||||
me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format));
|
me.api.asc_DownloadAs(new Asc.asc_CDownloadOptions(format));
|
||||||
|
}, 50);
|
||||||
}
|
}
|
||||||
|
|
||||||
me.hideModal();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue