mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 01:31:33 +08:00
[Mobile] Bug with loading protected files.
This commit is contained in:
@ -1042,6 +1042,10 @@ define([
|
||||
});
|
||||
|
||||
} else if (type == Asc.c_oAscAdvancedOptionsID.DRM) {
|
||||
$(me.loadMask).hasClass('modal-in') && uiApp.closeModal(me.loadMask);
|
||||
|
||||
me.onLongActionEnd(Asc.c_oAscAsyncActionType.BlockInteraction, LoadingDocument);
|
||||
|
||||
modal = uiApp.modal({
|
||||
title: me.advDRMOptions,
|
||||
text: me.advDRMEnterPassword,
|
||||
@ -1061,6 +1065,11 @@ define([
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
// Vertical align
|
||||
$$(modal).css({
|
||||
marginTop: - Math.round($$(modal).outerHeight() / 2) + 'px'
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -997,6 +997,10 @@ define([
|
||||
me = this, modal;
|
||||
|
||||
if (type == Asc.c_oAscAdvancedOptionsID.DRM) {
|
||||
$(me.loadMask).hasClass('modal-in') && uiApp.closeModal(me.loadMask);
|
||||
|
||||
me.onLongActionEnd(Asc.c_oAscAsyncActionType.BlockInteraction, LoadingDocument);
|
||||
|
||||
modal = uiApp.modal({
|
||||
title: me.advDRMOptions,
|
||||
text: me.advDRMEnterPassword,
|
||||
@ -1016,6 +1020,11 @@ define([
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
// Vertical align
|
||||
$$(modal).css({
|
||||
marginTop: - Math.round($$(modal).outerHeight() / 2) + 'px'
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -1173,6 +1173,10 @@ define([
|
||||
marginTop: - Math.round($$(modal).outerHeight() / 2) + 'px'
|
||||
});
|
||||
} else if (type == Asc.c_oAscAdvancedOptionsID.DRM) {
|
||||
$(me.loadMask).hasClass('modal-in') && uiApp.closeModal(me.loadMask);
|
||||
|
||||
me.onLongActionEnd(Asc.c_oAscAsyncActionType.BlockInteraction, LoadingDocument);
|
||||
|
||||
modal = uiApp.modal({
|
||||
title: me.advDRMOptions,
|
||||
text: me.advDRMEnterPassword,
|
||||
@ -1192,6 +1196,11 @@ define([
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
// Vertical align
|
||||
$$(modal).css({
|
||||
marginTop: - Math.round($$(modal).outerHeight() / 2) + 'px'
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user