From 80b2ca7ee418d527524590ea8ce255a21fa4e9ee Mon Sep 17 00:00:00 2001 From: Dmitry-Ilyushechkin Date: Wed, 14 Jan 2026 18:36:54 +0300 Subject: [PATCH] fix bug 79056 --- apps/documenteditor/main/app/view/CrossReferenceDialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/documenteditor/main/app/view/CrossReferenceDialog.js b/apps/documenteditor/main/app/view/CrossReferenceDialog.js index 7b058d648e..3d578bd1f5 100644 --- a/apps/documenteditor/main/app/view/CrossReferenceDialog.js +++ b/apps/documenteditor/main/app/view/CrossReferenceDialog.js @@ -416,7 +416,8 @@ define([], function () { 'use strict'; var refType = record.value, typeRec = this.cmbType.getSelectedRecord(), type = (typeRec.type==1 || typeRec.value>4) ? 5 : typeRec.value; - var disable = (type==5 && refType!==Asc.c_oAscDocumentRefenceToType.PageNum) || (type<5) && (refType==Asc.c_oAscDocumentRefenceToType.Text || refType==Asc.c_oAscDocumentRefenceToType.AboveBelow); + var disable = type === 1 || (type==5 && refType!==Asc.c_oAscDocumentRefenceToType.PageNum) || (type<5) && (refType==Asc.c_oAscDocumentRefenceToType.Text || refType==Asc.c_oAscDocumentRefenceToType.AboveBelow); + if (type === 1) this.chBelowAbove.setValue(false); this.chBelowAbove.setDisabled(disable); disable = !(type==0 || type==2) || (refType!==Asc.c_oAscDocumentRefenceToType.ParaNumFullContex); this.chSeparator.setDisabled(disable);