[DE] Fix pdf-forms

This commit is contained in:
Julia Radzhabova
2024-09-10 21:56:05 +03:00
parent a596c9a73b
commit b27b56cc07
2 changed files with 5 additions and 3 deletions

View File

@ -95,7 +95,8 @@ define([
this.appConfig = config.config;
this.view = this.createView('FormsTab', {
toolbar: this.toolbar.toolbar,
config: config.config
config: config.config,
api: this.api
});
var dirRight = Common.UI.isRTL() ? 'left' : 'right',
dirLeft = Common.UI.isRTL() ? 'right' : 'left',

View File

@ -263,6 +263,7 @@ define([
Common.UI.BaseView.prototype.initialize.call(this);
this.toolbar = options.toolbar;
this.appConfig = options.config;
this.api = options.api;
this.paragraphControls = [];
this._state = {};
@ -285,9 +286,9 @@ define([
if (/(^[0-9]+$)/.test(value)) {
value = parseInt(value);
if (value===undefined || value===null || value<1)
me.fieldPages.setValue(me.api.getCurrentPage()+1);
me.fieldPages.setValue((me.api ? me.api.getCurrentPage() : 0)+1);
} else
me.fieldPages.setValue(me.api.getCurrentPage()+1);
me.fieldPages.setValue((me.api ? me.api.getCurrentPage() : 0)+1);
return true;
}