Show custom message for protected files
This commit is contained in:
parent
2f23517f21
commit
d067d3572c
|
@ -68,6 +68,7 @@ define([
|
|||
preview : options.preview,
|
||||
warning : options.warning,
|
||||
codepages : options.codepages,
|
||||
warningMsg : options.warningMsg,
|
||||
width : width,
|
||||
height : height,
|
||||
header : true,
|
||||
|
@ -85,7 +86,7 @@ define([
|
|||
'<% if (warning) { %>',
|
||||
'<div>',
|
||||
'<div class="icon img-commonctrl warn"></div>',
|
||||
'<div style="padding-left: 50px;"><div style="font-size: 12px;">' + t.txtProtected+ '</div>',
|
||||
'<div style="padding-left: 50px;"><div style="font-size: 12px;">' + (typeof _options.warningMsg=='string' ? _options.warningMsg : t.txtProtected) + '</div>',
|
||||
'<label class="header" style="margin-top: 15px;">' + t.txtPassword + '</label>',
|
||||
'<div id="id-password-txt" style="width: 290px;"></div></div>',
|
||||
'</div>',
|
||||
|
|
|
@ -2088,6 +2088,7 @@ define([
|
|||
closeFile: me.appOptions.canRequestClose,
|
||||
type: Common.Utils.importTextType.DRM,
|
||||
warning: !(me.appOptions.isDesktopApp && me.appOptions.isOffline),
|
||||
warningMsg: advOptions,
|
||||
validatePwd: !!me._state.isDRM,
|
||||
handler: function (result, value) {
|
||||
me.isShowOpenDialog = false;
|
||||
|
|
|
@ -1329,7 +1329,7 @@ define([
|
|||
|
||||
me._state.openDlg = uiApp.modal({
|
||||
title: me.advDRMOptions,
|
||||
text: me.txtProtected,
|
||||
text: (typeof advOptions=='string' ? advOptions : me.txtProtected),
|
||||
afterText: '<div class="input-field"><input type="password" name="modal-password" placeholder="' + me.advDRMPassword + '" class="modal-text-input"></div>',
|
||||
buttons: buttons
|
||||
});
|
||||
|
|
|
@ -1884,6 +1884,7 @@ define([
|
|||
closeFile: me.appOptions.canRequestClose,
|
||||
type: Common.Utils.importTextType.DRM,
|
||||
warning: !(me.appOptions.isDesktopApp && me.appOptions.isOffline),
|
||||
warningMsg: advOptions,
|
||||
validatePwd: !!me._state.isDRM,
|
||||
handler: function (result, value) {
|
||||
me.isShowOpenDialog = false;
|
||||
|
|
|
@ -1218,7 +1218,7 @@ define([
|
|||
|
||||
me._state.openDlg = uiApp.modal({
|
||||
title: me.advDRMOptions,
|
||||
text: me.txtProtected,
|
||||
text: (typeof advOptions=='string' ? advOptions : me.txtProtected),
|
||||
afterText: '<div class="input-field"><input type="password" name="modal-password" placeholder="' + me.advDRMPassword + '" class="modal-text-input"></div>',
|
||||
buttons: buttons
|
||||
});
|
||||
|
|
|
@ -1826,6 +1826,7 @@ define([
|
|||
closeFile: me.appOptions.canRequestClose,
|
||||
type: Common.Utils.importTextType.DRM,
|
||||
warning: !(me.appOptions.isDesktopApp && me.appOptions.isOffline),
|
||||
warningMsg: advOptions,
|
||||
validatePwd: !!me._state.isDRM,
|
||||
handler: function (result, value) {
|
||||
me.isShowOpenDialog = false;
|
||||
|
|
|
@ -1425,7 +1425,7 @@ define([
|
|||
|
||||
me._state.openDlg = uiApp.modal({
|
||||
title: me.advDRMOptions,
|
||||
text: me.txtProtected,
|
||||
text: (typeof advOptions=='string' ? advOptions : me.txtProtected),
|
||||
afterText: '<div class="input-field"><input type="password" name="modal-password" placeholder="' + me.advDRMPassword + '" class="modal-text-input"></div>',
|
||||
buttons: buttons
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue