mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
[DE] Fix filling forms
This commit is contained in:
@ -674,16 +674,20 @@ define([
|
|||||||
} else {
|
} else {
|
||||||
me.view.btnPrev.on('click', function(){
|
me.view.btnPrev.on('click', function(){
|
||||||
me.api.asc_MoveToFillingForm(false);
|
me.api.asc_MoveToFillingForm(false);
|
||||||
|
me.onEditComplete();
|
||||||
});
|
});
|
||||||
me.view.btnNext.on('click', function(){
|
me.view.btnNext.on('click', function(){
|
||||||
me.api.asc_MoveToFillingForm(true);
|
me.api.asc_MoveToFillingForm(true);
|
||||||
|
me.onEditComplete();
|
||||||
});
|
});
|
||||||
me.view.btnClear.on('click', function(){
|
me.view.btnClear.on('click', function(){
|
||||||
me.api.asc_ClearAllSpecialForms();
|
me.api.asc_ClearAllSpecialForms();
|
||||||
|
me.onEditComplete();
|
||||||
});
|
});
|
||||||
me.view.btnSubmit.on('click', function(){
|
me.view.btnSubmit.on('click', function(){
|
||||||
if (!me.api.asc_IsAllRequiredFormsFilled()) {
|
if (!me.api.asc_IsAllRequiredFormsFilled()) {
|
||||||
me.api.asc_MoveToFillingForm(true, true, true);
|
me.api.asc_MoveToFillingForm(true, true, true);
|
||||||
|
me.onEditComplete();
|
||||||
if (!me.requiredTooltip) {
|
if (!me.requiredTooltip) {
|
||||||
me.requiredTooltip = new Common.UI.SynchronizeTip({
|
me.requiredTooltip = new Common.UI.SynchronizeTip({
|
||||||
extCls: 'colored',
|
extCls: 'colored',
|
||||||
@ -726,9 +730,12 @@ define([
|
|||||||
});
|
});
|
||||||
me.view.btnUndo.on('click', function(){
|
me.view.btnUndo.on('click', function(){
|
||||||
me.api.Undo(false);
|
me.api.Undo(false);
|
||||||
|
me.onEditComplete();
|
||||||
|
|
||||||
});
|
});
|
||||||
me.view.btnRedo.on('click', function(){
|
me.view.btnRedo.on('click', function(){
|
||||||
me.api.Redo(false);
|
me.api.Redo(false);
|
||||||
|
me.onEditComplete();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.api.asc_setRestriction(Asc.c_oAscRestrictionType.OnlyForms);
|
this.api.asc_setRestriction(Asc.c_oAscRestrictionType.OnlyForms);
|
||||||
@ -1098,7 +1105,7 @@ define([
|
|||||||
closable: false,
|
closable: false,
|
||||||
msg: err,
|
msg: err,
|
||||||
callback: function(btn){
|
callback: function(btn){
|
||||||
Common.NotificationCenter.trigger('edit:complete', me);
|
me.onEditComplete();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).on('close', function(obj){
|
}).on('close', function(obj){
|
||||||
@ -2133,6 +2140,11 @@ define([
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onEditComplete: function() {
|
||||||
|
var me = this;
|
||||||
|
me.boxSdk && _.defer(function(){ me.boxSdk.focus(); }, 50);
|
||||||
|
},
|
||||||
|
|
||||||
errorDefaultMessage : 'Error code: %1',
|
errorDefaultMessage : 'Error code: %1',
|
||||||
unknownErrorText : 'Unknown error.',
|
unknownErrorText : 'Unknown error.',
|
||||||
convertationTimeoutText : 'Conversion timeout exceeded.',
|
convertationTimeoutText : 'Conversion timeout exceeded.',
|
||||||
|
|||||||
Reference in New Issue
Block a user