Commit e7d7f871 authored by Julia Radzhabova's avatar Julia Radzhabova

[Mobile] Bug with loading protected files.

parent abc80c47
...@@ -1045,6 +1045,10 @@ define([ ...@@ -1045,6 +1045,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,
...@@ -1064,6 +1068,11 @@ define([ ...@@ -1064,6 +1068,11 @@ define([
} }
] ]
}); });
// Vertical align
$$(modal).css({
marginTop: - Math.round($$(modal).outerHeight() / 2) + 'px'
});
} }
}, },
......
...@@ -998,6 +998,10 @@ define([ ...@@ -998,6 +998,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,
...@@ -1017,6 +1021,11 @@ define([ ...@@ -1017,6 +1021,11 @@ define([
} }
] ]
}); });
// Vertical align
$$(modal).css({
marginTop: - Math.round($$(modal).outerHeight() / 2) + 'px'
});
} }
}, },
......
...@@ -1173,6 +1173,10 @@ define([ ...@@ -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([ ...@@ -1192,6 +1196,11 @@ define([
} }
] ]
}); });
// Vertical align
$$(modal).css({
marginTop: - Math.round($$(modal).outerHeight() / 2) + 'px'
});
} }
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment