[Mobile] Bug with loading protected files.
This commit is contained in:
parent
196bc28847
commit
a1095fb888
|
@ -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'
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue