[Mobile] Bug with loading protected files.

This commit is contained in:
Julia Radzhabova 2017-09-08 12:06:17 +03:00
parent 196bc28847
commit a1095fb888
3 changed files with 27 additions and 0 deletions

View file

@ -1042,6 +1042,10 @@ define([
}); });
} else if (type == Asc.c_oAscAdvancedOptionsID.DRM) { } 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({ modal = uiApp.modal({
title: me.advDRMOptions, title: me.advDRMOptions,
text: me.advDRMEnterPassword, text: me.advDRMEnterPassword,
@ -1061,6 +1065,11 @@ define([
} }
] ]
}); });
// Vertical align
$$(modal).css({
marginTop: - Math.round($$(modal).outerHeight() / 2) + 'px'
});
} }
}, },

View file

@ -997,6 +997,10 @@ define([
me = this, modal; me = this, modal;
if (type == Asc.c_oAscAdvancedOptionsID.DRM) { 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({ modal = uiApp.modal({
title: me.advDRMOptions, title: me.advDRMOptions,
text: me.advDRMEnterPassword, text: me.advDRMEnterPassword,
@ -1016,6 +1020,11 @@ define([
} }
] ]
}); });
// Vertical align
$$(modal).css({
marginTop: - Math.round($$(modal).outerHeight() / 2) + 'px'
});
} }
}, },

View file

@ -1173,6 +1173,10 @@ define([
marginTop: - Math.round($$(modal).outerHeight() / 2) + 'px' marginTop: - Math.round($$(modal).outerHeight() / 2) + 'px'
}); });
} else if (type == Asc.c_oAscAdvancedOptionsID.DRM) { } 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({ modal = uiApp.modal({
title: me.advDRMOptions, title: me.advDRMOptions,
text: me.advDRMEnterPassword, text: me.advDRMEnterPassword,
@ -1192,6 +1196,11 @@ define([
} }
] ]
}); });
// Vertical align
$$(modal).css({
marginTop: - Math.round($$(modal).outerHeight() / 2) + 'px'
});
} }
}, },