Skip to content

Commit

Permalink
[DE] Fix filling forms
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Jan 30, 2025
1 parent a46cb18 commit b365673
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -674,16 +674,20 @@ define([
} else {
me.view.btnPrev.on('click', function(){
me.api.asc_MoveToFillingForm(false);
me.onEditComplete();
});
me.view.btnNext.on('click', function(){
me.api.asc_MoveToFillingForm(true);
me.onEditComplete();
});
me.view.btnClear.on('click', function(){
me.api.asc_ClearAllSpecialForms();
me.onEditComplete();
});
me.view.btnSubmit.on('click', function(){
if (!me.api.asc_IsAllRequiredFormsFilled()) {
me.api.asc_MoveToFillingForm(true, true, true);
me.onEditComplete();
if (!me.requiredTooltip) {
me.requiredTooltip = new Common.UI.SynchronizeTip({
extCls: 'colored',
Expand Down Expand Up @@ -726,9 +730,12 @@ define([
});
me.view.btnUndo.on('click', function(){
me.api.Undo(false);
me.onEditComplete();

});
me.view.btnRedo.on('click', function(){
me.api.Redo(false);
me.onEditComplete();
});

this.api.asc_setRestriction(Asc.c_oAscRestrictionType.OnlyForms);
Expand Down Expand Up @@ -1098,7 +1105,7 @@ define([
closable: false,
msg: err,
callback: function(btn){
Common.NotificationCenter.trigger('edit:complete', me);
me.onEditComplete();
}
});
}).on('close', function(obj){
Expand Down Expand Up @@ -2133,6 +2140,11 @@ define([
}
},

onEditComplete: function() {
var me = this;
me.boxSdk && _.defer(function(){ me.boxSdk.focus(); }, 50);
},

errorDefaultMessage : 'Error code: %1',
unknownErrorText : 'Unknown error.',
convertationTimeoutText : 'Conversion timeout exceeded.',
Expand Down

0 comments on commit b365673

Please sign in to comment.